search for: edit_user_role_form

Displaying 1 result from an estimated 1 matches for "edit_user_role_form".

2011 Jan 06
14
Forceing PUST vs. POST in form
I am experimenting with a combined form. I wish to force the HTTP verb for this form to PUT. However, it always uses POST when submitted and I cannot determine why. The view template code is: <%=form_for( @user, :html => { :class => :edit_user_role, :id => :edit_user_role_form, :method => :put }, :url => user_roles_url( @user ) ) do |f|-%> The resulting html is: <form accept-charset="UTF-8" action="http://www.example.com/users/330/roles" class="edit_user_role" id="edit_user_role_form" meth...