Ruby on Rails
Wednesday, April 24, 2013
1 - You name it "pictures_questions" because they are in alphabetical order that way, and that's what Rails assumes
2 - Yes, it is an attribute of Question because you specified "has_and_belongs_to_many :pictures" in your model. Then rails assumes there will be a join table.
-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/5V-1dPcMqEQJ.
For more options, visit https://groups.google.com/groups/opt_out.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment