diff options
author | Alexey Zapparov <ixti@member.fsf.org> | 2016-05-30 02:15:18 +0200 |
---|---|---|
committer | Alexey Zapparov <ixti@member.fsf.org> | 2017-03-01 20:54:14 +0100 |
commit | 8e6c6d854cdedad4bc082cf45a01d411ea26fb68 (patch) | |
tree | 8cefc1e555df79e53b17915e093f8070c15acd93 /railties/lib/rails/templates | |
parent | b61a56541aecd7ac685d4f19d943177a3f1b465a (diff) | |
download | rails-8e6c6d854cdedad4bc082cf45a01d411ea26fb68.tar.gz rails-8e6c6d854cdedad4bc082cf45a01d411ea26fb68.tar.bz2 rails-8e6c6d854cdedad4bc082cf45a01d411ea26fb68.zip |
Pass request params to ActionMailer::Preview
Diffstat (limited to 'railties/lib/rails/templates')
-rw-r--r-- | railties/lib/rails/templates/rails/mailers/email.html.erb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/lib/rails/templates/rails/mailers/email.html.erb b/railties/lib/rails/templates/rails/mailers/email.html.erb index c63781ed0c..89c1129f90 100644 --- a/railties/lib/rails/templates/rails/mailers/email.html.erb +++ b/railties/lib/rails/templates/rails/mailers/email.html.erb @@ -98,8 +98,8 @@ <% if @email.multipart? %> <dd> <select onchange="formatChanged(this);"> - <option <%= request.format == Mime[:html] ? 'selected' : '' %> value="?part=text%2Fhtml">View as HTML email</option> - <option <%= request.format == Mime[:text] ? 'selected' : '' %> value="?part=text%2Fplain">View as plain-text email</option> + <option <%= request.format == Mime[:html] ? 'selected' : '' %> value="?<%= part_query('text/html') %>">View as HTML email</option> + <option <%= request.format == Mime[:text] ? 'selected' : '' %> value="?<%= part_query('text/plain') %>">View as plain-text email</option> </select> </dd> <% end %> @@ -107,7 +107,7 @@ </header> <% if @part && @part.mime_type %> - <iframe seamless name="messageBody" src="?part=<%= Rack::Utils.escape(@part.mime_type) %>"></iframe> + <iframe seamless name="messageBody" src="?<%= part_query(@part.mime_type) %>"></iframe> <% else %> <p> You are trying to preview an email that does not have any content. |