Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #2143 from luisico/display-invalid-confirmation-to…

…ken-error

Invalid confirmation token message not shown with simple_form
  • Loading branch information...
commit 6c2c808478b36289b134e24996942232318dd3a5 2 parents 397fce1 + 0415564
@josevalim josevalim authored
View
1  lib/generators/templates/simple_form_for/confirmations/new.html.erb
@@ -2,6 +2,7 @@
<%= simple_form_for(resource, :as => resource_name, :url => confirmation_path(resource_name), :html => { :method => :post }) do |f| %>
<%= f.error_notification %>
+ <%= f.full_error :confirmation_token %>
<div class="form-inputs">
<%= f.input :email, :required => true, :autofocus => true %>
View
1  lib/generators/templates/simple_form_for/unlocks/new.html.erb
@@ -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 %>
Please sign in to comment.
Something went wrong with that request. Please try again.