Working in 2.3.2 and working from the examples in Github for nested
forms, this works fine for simple text fields, or simple selects but
option_groups_from_collection_for_select is a bit more complicated.
The js code he''s used generates a template to be used for each nested
form, but it does it in the simple example by using a f.select helper.
This will generate the correct html for the new record. But if you''re
doing something a bit more complex e.g. using
option_groups_from_collection_for_select then you have to wrap the
options in your own select tag. So how do I get everything in place in
my hand coded <select> and also allow the js to create the right
template?
All comments welcome
Ta
John Small
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---