search for: bergonom

Displaying 1 result from an estimated 1 matches for "bergonom".

2012 Apr 18
1
has_and_belongs_to_many: Item Already in Collection?
I''m putting together what should be a simple app using content and tags using has_and_belongs_to_many for each. create_table :contents_tags, :id => false do |t| t.references :content t.references :tag end When a user tries to add a new tag, I''m trying to detect if the content already has the tag. So ... I grab the tag like this: tag =