diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2013-02-26 14:26:20 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2013-02-26 14:26:20 +1100 |
commit | e50f9ddb3c4f80cdff672a68865f392f249067c4 (patch) | |
tree | ea9c2c1ef5a07aa72f1970debfc07eb753319fc5 | |
parent | fba98d789cd3ab04cc0e1969f5bb15b7c268f816 (diff) |
Use string interpolation to make the flash message more readable in the code
-rw-r--r-- | app/controllers/admin_request_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin_request_controller.rb b/app/controllers/admin_request_controller.rb index a0ade5d19..15d66aa0d 100644 --- a/app/controllers/admin_request_controller.rb +++ b/app/controllers/admin_request_controller.rb @@ -304,7 +304,7 @@ class AdminRequestController < AdminController post_redirect.save! url = main_url(confirm_url(:email_token => post_redirect.email_token, :only_path => true)) - flash[:notice] = ('Send "' + name + '" <<a href="mailto:' + email + '">' + email + '</a>> this URL: <a href="' + url + '">' + url + "</a> - it will log them in and let them upload a response to this request.").html_safe + flash[:notice] = ("Send \"#{name}\" <<a href=\"mailto:#{email}\">#{email}</a>> this URL: <a href=\"#{url}\">#{url}</a> - it will log them in and let them upload a response to this request.").html_safe redirect_to request_admin_url(info_request) end |