search for: images_tags

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

2006 Jul 17
6
3 newbie questions
hey all, I have 3 tables like this: Images (id,name) Tags (id,name) ImagesTags(imageid,tagid) in my image model I do a "has_and_belongs_to_many :tags" but to make it work I need to rename ImagesTags(imageid,tagid) to Images_Tags(image_id,tag_id). My question is that given that I can''t rename the table, is there any way to make it work with the original names? Second question: I have 2 tables like this: Picture(id,name,albumid) Albums(id,name) in my Picture model I put: belongs_to :album, :foreign_key => &quot...