Hi Phil, Thanks for your answer. It could help me.
What I want is to split the edit registrations view in 2 new views,
for example:
1.) views/account/index.html.erb (with the following route: settings/
account)
<%= form_for(resource, :as => resource_name, :url =>
registration_path(resource_name), :html => { :method => :put }) do |f|
%>
<%= devise_error_messages! %>
<%= f.label :username %>
<%= f.text_field :username %>
<%= f.label :email %>
<%= f.text_field :email %>
<%= f.submit "Save" %>
<% end %
and
2.) views/password/index.html.erb (with the following route: settings/
password)
<%= form_for(resource, :as => resource_name, :url =>
registration_path(resource_name), :html => { :method => :put }) do |f|
%>
<%= devise_error_messages! %>
<%= f.label :password, "New Password" %>
<%= f.password_field :password %>
<%= f.label :password_confirmation %>
<%= f.password_field :password_confirmation %>
<%= f.label :current_password %>
<%= f.password_field :current_password %>
<%= f.submit "Save" %>
<% end %>
and my question is, in order to accomplish this: did I have to
overwrite the registration controller or there is a better way to get
this result?
Thanks for any suggestion!