title: link_to update a Devise user, method => put
body: <p>I'm trying to update a single databasefield of my current_user (devise).</p>
  
  <p>I want to do this just with the link_to helper:</p>
  
  <pre><code>&lt;%= link_to "Grid", edit_user_registration_path(current_user, :project_view =&gt; "grid"), :method =&gt; :put %&gt;
  </code></pre>
  
  <p>But I can't get it to work since the result it allways an error:</p>
  
  <pre><code>Routing Error
  
  No route matches [PUT] "/users/edit.1"
  </code></pre>
  
  <p>My Routes for Devise:</p>
  
  <pre><code>        new_user_session GET    /users/sign_in(.:format)       devise/sessions#new
              user_session POST   /users/sign_in(.:format)       devise/sessions#create
      destroy_user_session DELETE /users/sign_out(.:format)      devise/sessions#destroy
             user_password POST   /users/password(.:format)      devise/passwords#create
         new_user_password GET    /users/password/new(.:format)  devise/passwords#new
        edit_user_password GET    /users/password/edit(.:format) devise/passwords#edit
                           PUT    /users/password(.:format)      devise/passwords#update
  cancel_user_registration GET    /users/cancel(.:format)        devise/registrations#cancel
         user_registration POST   /users(.:format)               devise/registrations#create
     new_user_registration GET    /users/sign_up(.:format)       devise/registrations#new
    edit_user_registration GET    /users/edit(.:format)          devise/registrations#edit
                           PUT    /users(.:format)               devise/registrations#update
                           DELETE /users(.:format)               devise/registrations#destroy
  </code></pre>
  
  <p>What's wrong with the routing? I'm using devise without any custom modifications.</p>
  
  <p>Thanks!</p>