Skip to content

Instantly share code, notes, and snippets.

@panaak
Created November 16, 2016 10:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save panaak/5d0c26416f3be18e60910f223677d721 to your computer and use it in GitHub Desktop.
Save panaak/5d0c26416f3be18e60910f223677d721 to your computer and use it in GitHub Desktop.
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)) |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment