<% form_for(@user) do |f| %> <%= f.error_messages %>
Enter User Details
<%= f.label :name %>: <%= f.text_field :name, :size => 40 %>
<%= f.label :user_password, 'Password' %>: <%= f.password_field :password, :size => 40 %>
<%= f.label :user_password_confirmation, 'Confirm' %>: <%= f.password_field :password_confirmation, :size => 40 %>
<%= f.submit "Add User", :class => "submit" %>
<% end %>