I am having trouble converting a form from form_remote_tag to
form_remote_for. The text fields on lines 3-5 work fine, but I can''t
get
the collection_select on line 2 working (wrong number of arguments
error).
1 <% form_remote_for (:name, name, :url => {:action =>
''update_name'',
:name => name, :id => @person}) do |f| %>
2 <label>Title:</label><%= f.collection_select(:name,
:title_id,
@titles, :id, :name) %><p>
3 <label>First:</label><%= f.text_field :first_name
%><p>
4 <label>Middle:</label><%= f.text_field :middle_name
%><p>
5 <label>Last:</label><%= f.text_field :last_name
%><p>
6 <%= submit_tag ''Edit'' %>
7 <% end %>
Any thoughts?
--
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
-~----------~----~----~----~------~----~------~--~---