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

Error on Registration #21

Closed
tonytaudesign opened this issue Aug 28, 2014 · 6 comments
Closed

Error on Registration #21

tonytaudesign opened this issue Aug 28, 2014 · 6 comments

Comments

@tonytaudesign
Copy link

When I make a post to /auth with the appropriate params I receive this error.

@lynndylanhurley
Copy link
Owner

Can you please post the full error?

If you're running rails using rails server, the error output will be visible in the terminal. Otherwise, the error will be logged in the log/development.log file.

@MattCowski
Copy link

ArgumentError in DeviseTokenAuth::Registrations#create
Showing /.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/devise_token_auth-0.1.26/app/views/devise/mailer/confirmation_instructions.html.erb where line #5 raised:

Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true
Extracted source (around line #5):
2345          

  <p>You can confirm your account email through the link below:</p>

  <p><%= link_to 'Confirm my account', confirmation_url(@resource, confirmation_token: @token) %></p>

@tonytaudesign
Copy link
Author

Matt and I are working on this together. An error does not show up in my development logs. The angular app is not located in the asset pipeline. The error Matt posted was found using chrome console.

@diffractometer
Copy link

This issue is covered in the documentation:
https://github.com/lynndylanhurley/devise_token_auth#email-authentication

set:
config.action_mailer.default_url_options = { :host => "yourhost" }

@lynndylanhurley
Copy link
Owner

Thanks @diffractometer! Also, here's the relevant section in the ActionMailer docs.

@tonytaudesign
Copy link
Author

Thank you, Appreciate it!

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

No branches or pull requests

4 participants