Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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