Re: [Rails] has_many :through - creating a new model

2010-10-14 Thread Erol Fornoles
Whipped up a small plugin for your use case: http://github.com/Erol/nested_checklist In your Venue model: has_many :assignments has_many :sheets, :through => :assignments accepts_nested_checklist_and_attributes_for :sheets In your VenuesController: def new @venue = Venue.new @venue.build_

[Rails] has_many :through - creating a new model

2010-10-14 Thread José Mota
Hi guys! I'm having this trouble over relationships between models, like this: Venue (read a student's tests) ---> Assignment ---> Sheet (read musical sheets) Here's a video of what I need to accomplish: http://screenr.com/RQl It's pretty straightforward, I believe: when creating venues, I