RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: tuzz
Site: http://chris.patuzzo.co.uk
Don't make the mistake of setting tweet_id's type to an integer. MySQL maxes out at 2147483647 unless you specify a limit. It's easier to just make it a string.
This helped me to build rack-markdown.
You'll still need to split:
def tag_tokens=(ids) ids = ids.split(',') self.tag_list = Tag.where(:id => ids).map(&:name) end
If you're using acts-as-taggable-on and you're getting 'Validation failed: Context can't be blank', the following should work:
def tag_tokens=(ids) self.tag_list = Tag.where(:id => ids).map(&:name) end
Don't make the mistake of setting tweet_id's type to an integer. MySQL maxes out at 2147483647 unless you specify a limit. It's easier to just make it a string.
This helped me to build rack-markdown.
You'll still need to split:
If you're using acts-as-taggable-on and you're getting 'Validation failed: Context can't be blank', the following should work: