Show invalid unlock token message

Attribute unlock token is not present in the simple_form template,
therefore not being displayed by #error_notification.
This fix explicitily call #full_error on :unlock_token.
This commit is contained in:
Luis Gracia 2012-11-13 15:01:32 -05:00
parent ed6f2abc23
commit 0415564a7d
1 changed files with 1 additions and 0 deletions

View File

@ -2,6 +2,7 @@
<%= simple_form_for(resource, :as => resource_name, :url => unlock_path(resource_name), :html => { :method => :post }) do |f| %>
<%= f.error_notification %>
<%= f.full_error :unlock_token %>
<div class="form-inputs">
<%= f.input :email, :required => true, :autofocus => true %>