Skip to content

Instantly share code, notes, and snippets.

@panaak
panaak / confirmation_instructions.html.haml
Created Nov 16, 2016
devise confirmation instructions
View confirmation_instructions.html.haml
- require 'devise/version'
%p= t('.greeting', :recipient => @resource.email, :default => "Welcome #{@resource.email}!")
%p= t('.instruction', :default => "You can confirm your account email through the link below:")
%p= link_to t('.action', :default => "Confirm my account"), |
confirmation_url(@resource, :confirmation_token => (Devise::VERSION.start_with?('3.') ? @token : @resource.confirmation_token)) |