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

Routes not appended to routes.rb #45

Closed
m2omou opened this issue Oct 14, 2014 · 3 comments
Closed

Routes not appended to routes.rb #45

m2omou opened this issue Oct 14, 2014 · 3 comments

Comments

@m2omou
Copy link

m2omou commented Oct 14, 2014

Hi, first thank you for this great gem !

When I run this command line:

"rails g devise_token_auth:install User /auth"

I got this :

create config/initializers/devise_token_auth.rb
create db/migrate/20141014191637_devise_token_auth_create_users.rb
insert app/models/user.rb
insert app/controllers/application_controller.rb
gsub config/routes.rb

But when I check my routes file I can't see the new routes ?

My rails version is 4.1.6. Thank you

@lynndylanhurley
Copy link
Owner

@m2omou - can you post the contents of your config/routes.rb file?

@m2omou
Copy link
Author

m2omou commented Oct 15, 2014

Oh got it, I updated my routes.rb file.

I had SampleApp.application.routes.draw, and changed it to Rails.application.routes.draw do

And now it seems to work. I only have this that's normal ?

mount_devise_token_auth_for 'User', at: '/auth'

@lynndylanhurley
Copy link
Owner

@m2omou - that looks good to me!

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

2 participants