On Apr 27, 12:17 pm, Jim Burgess <rails-mailing-l...@andreas-s.net>
wrote:
> Hi Fred,
> Well that worked :-)
> I changed
> <%= f.select :member_1
> into
> <%= select_tag :member_1
> and got 100% the desired result.
>
> Only problem is, is that I am using
> <% form_for :applicant, :url=> {:action => "index"} do |f| %>
> to create my form and removing the reference to the applicant object
> ("f"), means that the value for "member_1" does not get passed when I
> submit the form.
>
> Is there any way around this?

You need to specify the right name for select_tag. Easiest way to do
that is to switch back to f.select, look at the html and use the name
it generated for the select tag.

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
-~----------~----~----~----~------~----~------~--~---

Reply via email to