By "convention" the form code is incorrect. For a new resource, you should be using post
method and not put
method. Please see Representational state transfer for details on the different http methods.
As shown, you also already have post "user/new" => "user#register"
route defined, so fix the view code by either removing the :method => :put
as form_for
defaults to post
, or by replacing the method to :post
.
<%= form_for @user, :as => :user, :url => new_user_path do |f| %>