9f5e04bbba
Instead of hard-coding the scheme and host everywhere, use _path methods to show relative URLs. Except that our previous setting of Rails.application.routes.default_url_options in config.after_initialize made this moot because Rails inserts that host into all _path helpers for some reason. So revert that setting. But then anything that wants an absolute URL doesn't know the hostname and the root_url helper throws an exception. So make a Rails.application.root_url shortcut to pass the per-app settings in Rails.application to root_url. Now we can just use _path helpers most places but still use _url ones where we need them, such as in RSS views and e-mail templates.
16 lines
560 B
Plaintext
16 lines
560 B
Plaintext
Hello <%= @invitation_request.email %>,
|
|
|
|
Someone at <%= @invitation_request.ip_address %> has submitted an invitation request to
|
|
<%= Rails.application.name %>.
|
|
|
|
Name: <%= @invitation_request.name %>
|
|
E-mail: <%= @invitation_request.email %> (won't be displayed to other users)
|
|
Memo: <%= @invitation_request.memo %>
|
|
|
|
If this is you, visit the URL below to confirm your request and
|
|
display it to other logged-in users.
|
|
|
|
<%= Rails.application.root_url %>invitations/confirm/<%= @invitation_request.code %>
|
|
|
|
If this is not you, you can delete this message.
|