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
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
%= 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
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
4 matches
Mail list logo