Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forgot password page crashing #6

Closed
booch opened this issue May 29, 2010 · 2 comments
Closed

Forgot password page crashing #6

booch opened this issue May 29, 2010 · 2 comments
Labels

Comments

@booch
Copy link
Member

booch commented May 29, 2010

Forgot password page crashes when entering mike.scholze@habanero.com or jim.barnthouse@habanero.com in the form.

ERROR:
RuntimeError in Passwords#create
Missing host to link to! Please provide :host parameter or set default_url_options[:host]
5:

<%= link_to 'Change my password', edit_password_url(@resource, :reset_password_token => @resource.reset_password_token) %>

@booch
Copy link
Member Author

booch commented May 29, 2010

I think we can resolve this by overriding default_url_options in ApplicationController:

def default_url_options(options={})
{ :host => HOST }.merge(options) # NOTE: HOST set in initializers/_site
end

@booch
Copy link
Member Author

booch commented May 30, 2010

Fixed in commit b97f211.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant