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.
21 lines
443 B
Plaintext
21 lines
443 B
Plaintext
<div class="box wide">
|
|
<div class="legend">
|
|
Reset Password
|
|
</div>
|
|
|
|
<p>
|
|
If you've forgotten your password, enter your e-mail address or username
|
|
below and instructions will be e-mailed to you.
|
|
</p>
|
|
|
|
<%= form_tag reset_password_path do %>
|
|
<%= label_tag :email, "E-mail or Username:" %>
|
|
<%= text_field_tag :email, "", :size => 30 %>
|
|
<br />
|
|
|
|
<p>
|
|
<%= submit_tag "Reset Password" %>
|
|
</p>
|
|
<% end %>
|
|
</div>
|