i've a problem with password confirmation validation
in User Model:
validates :password, :confirmation => true
and in the view new.html.erb:
<%= form_for(@user) do |f| %>
<div class="field">
<%= f.label :password %><br />
<%= f.password_field :password %><br />
<%= f.label :password_confirmation %><br />
<%= f.password_field :password_confirmation %><br />
</div>
<div class="actions">
<%= f.submit %>
</div>
<% end %>
so for any inserted data the validation throw error. i think that there's something wrong with :password_confirmation and RoR received it with nil value is it possibile? how can i do?
has_secure_passwordin Rails 3+.