Skip to content

Instantly share code, notes, and snippets.

@panaak
panaak / confirmation_instructions.html.haml
Created November 16, 2016 10:53
devise confirmation instructions
- 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)) |