Displaying 2 results from an estimated 2 matches for "multiple_models_one_form".
2012 Jul 14
0
Adding to an association from a long list of items
...nicate the user''s selection back to the original calling
controller. Also, a pop-up window might not be the best user experience.
I''ve been searching for any tips on handling this situation. All I''ve found
is this Rails Recipe<http://media.pragprog.com/titles/fr_arr/multiple_models_one_form.pdf>,
which is very close to what I''m trying to do, but unfortunately it doesn''t
show how to pick an item from a potentially large table.
Can anyone point me to an example or give me some idea of how to implement
this? Thanks!
--
You received this message because you are...
2009 Oct 06
1
Problems Processing multiple form elements generated by javascript actions
...but I''m hitting a wall with a few bugs
that I can''t figure out. Guidance would be very much appreciated.
I''m using the Ryan Bates technique from Advanced Rails recipes to
dynamically add and remove elements on a multi-model form.
http://media.pragprog.com/titles/fr_arr/multiple_models_one_form.pdf
I have 3 models: users, schedules and markets.
Users
has_many :schedules
has_many :markets, :through => :schedules
Markets
has_many :schedules
has_many :users, :through => :schedules
Schedules
belongs_to :users
belongs_to :markets
Schedules has columns user_id and market_id, but also...