diff options
author | Andrew White <andyw@pixeltrix.co.uk> | 2013-12-22 10:06:12 +0000 |
---|---|---|
committer | Andrew White <andyw@pixeltrix.co.uk> | 2013-12-22 10:06:12 +0000 |
commit | cbd4bc84afa354e9b4c50d53a0d6deb7141eb15d (patch) | |
tree | 4f6615e1f415460bf9fadc42413333a382ce5101 /railties/lib | |
parent | 6f4a556bf51f70090000a18b82ee4fe60730c6b2 (diff) | |
download | rails-cbd4bc84afa354e9b4c50d53a0d6deb7141eb15d.tar.gz rails-cbd4bc84afa354e9b4c50d53a0d6deb7141eb15d.tar.bz2 rails-cbd4bc84afa354e9b4c50d53a0d6deb7141eb15d.zip |
Add comments with urls for email previews
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/generators/test_unit/mailer/templates/preview.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/test_unit/mailer/templates/preview.rb b/railties/lib/rails/generators/test_unit/mailer/templates/preview.rb index ac14644145..3bfd5426e8 100644 --- a/railties/lib/rails/generators/test_unit/mailer/templates/preview.rb +++ b/railties/lib/rails/generators/test_unit/mailer/templates/preview.rb @@ -1,7 +1,9 @@ <% module_namespacing do -%> +# Preview all emails at http://localhost:3000/rails/mailers/<%= file_path %> class <%= class_name %>Preview < ActionMailer::Preview <% actions.each do |action| -%> + # Preview this email at http://localhost:3000/rails/mailers/<%= file_path %>/<%= action %> def <%= action %> <%= class_name %>.<%= action %> end |