Take the 2-minute tour ×  This might be a dumb question but when
I'm putting together an HTML email in Rails, is there a
particularly easy built-in way to preview the template it in the
browser or do I need to write some sort of custom controller
that pulls it in as its view?  share|improve this question  9
Answers 9  up vote 30 down vote accepted  Action Mailer now has
a built in way of previewing emails in Rails 4.1. For example,
check this out:  # located in
test/mailers/previews/notifier_mailer_preview.rb  class
NotifierPreview < ActionMailer::Preview   # Accessible from
http://localhost:3000/rails/mailers/notifier/welcome   def
welcome share|improve this answer Hello, in production
environment send error with route when i try open url ERROR
ActionController::RoutingError: No route matches [GET] In test
environment i don't have problem. –  andres Dec 17 at 17:23  The
previous answer is a good start, but if your email templates
contain any dynamic data, it won't work. E.g. suppose your email
is an order re