[Rails] Re: grouped_options_for_select

2010-02-15 Thread Dave Lynch
Dave Lynch wrote: Sharagoz -- wrote: Since this you are using form_for you want to use f.select not select_tag like in my example. Thanks Sharagoz I had tried % option_groups_from_collection_for_select(@parent, :childern, :name, :id, :name) % But was getting a undefined method

[Rails] Re: grouped_options_for_select

2010-02-13 Thread Dave Lynch
Sharagoz -- wrote: Since this you are using form_for you want to use f.select not select_tag like in my example. Thanks Sharagoz I had tried % option_groups_from_collection_for_select(@parent, :childern, :name, :id, :name) % But was getting a undefined method `inject' for #Parent:0xb6828c1c

[Rails] Re: grouped_options_for_select

2010-02-12 Thread Sharagoz --
%= select_tag(:child_id, option_groups_from_collection_for_select(@parent, :children, :name, :id, :name)) % -- 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

[Rails] Re: grouped_options_for_select

2010-02-12 Thread Sharagoz --
Since this you are using form_for you want to use f.select not select_tag like in my example. -- 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