Editing user details creates new user. Devise, Rails 4
问题 I have weird problem, previous created form instead of updating user details such as e-mail or name creates new user with given details. My form: this code example I took from views/devise/registrations/edit <%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { "data-parsley-validate" => true, :id=>"user-edit"},remote: true, format: :json) do |f| %> <div class="form-group"> <%= f.text_field :name,:class=>"user-input form-control", :id=>"user-name" ,