I have the following: <% form_remote_for :role, :method => :put, :url => {:controller => "roles", :action => "update", :id => @role.id\ } do |f| %> <tr> <td><%= select("role", "default_view", Account::ROLES) %></td> <td><%= submit_tag("Update"); %> </td> <td> <div id="role_attributes"> </div> </td> </tr> <% end -%>
Controller code: def update role = Role.find(params[:id]) role.update_attributes(params[:role]) render :update do |page| logger.info "update: " + debug(params) end the "debug(params)" outputs: update: <pre class='debug_dump'>--- !map:HashWithIndifferentAccess _method: put action: update id: "6" controller: roles </pre> There is no "default_view" field from my drop down. Just the params passed on the URL string. Not sure why this is happening. Thanks for any help -- 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@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 -~----------~----~----~----~------~----~------~--~---