Permalink
Browse files

Show invalid confirmation token message

fixes #2143

Attribute confirmation token is not present in the simple_form template,
therefore not being displayed by #error_notification.
This fix explicitily call #full_error on :confirmation_token.
  • Loading branch information...
1 parent 96a0477 commit ed6f2abc2311bec0454b3b40c5c00b6120eed660 @luisico committed Nov 13, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 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 %>

0 comments on commit ed6f2ab

Please sign in to comment.