On Apr 27, 2:28 pm, Jim Burgess <rails-mailing-l...@andreas-s.net>
wrote:
> Thanks for that.
> I have now changed the code thus:
>
> <%= select_tag "applicant[member_1]",
> grouped_options_for_select(@grouped_options) %>
>
> and now I can pick up :member_1 in the params.
> Hooray.
>
> One last thing though, when I submit the form the select menu always
> springs back to its initial value (in this case "United States"),
> regardless of what was previously selected.
>
you need to tell grouped_options_for_select what the value of the
selected option is
Fred
--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---