Skip to content

Instantly share code, notes, and snippets.

@mackato
Created March 10, 2014 08:45
Show Gist options
  • Save mackato/9461534 to your computer and use it in GitHub Desktop.
Save mackato/9461534 to your computer and use it in GitHub Desktop.
Rails 4.1.0.rc1でdeviseのメールをプレビューする ref: http://qiita.com/mackato/items/3f1e8b78fc80164ddcd6
class DevisePreview < ActionMailer::Preview
def confirmation_instructions
Devise::Mailer.confirmation_instructions(User.new, Devise.friendly_token[0,20])
end
end
% mkdir -p test/mailers/previews/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment