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:
parent
ed6f2abc23
commit
0415564a7d
|
@ -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 %>
|
||||
|
|
Loading…
Reference in New Issue