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

Generator is not working #8

Closed
drampelt opened this issue Jul 20, 2014 · 6 comments
Closed

Generator is not working #8

drampelt opened this issue Jul 20, 2014 · 6 comments

Comments

@drampelt
Copy link

I created a new rails project (rails 4.1.4), installed devise, created a user model with the devise generator and then ran rails g devise_token_auth:install User /auth. The only output I receive is

      create  config/initializers/devise_token_auth.rb
      create  db/migrate/20140720052809_devise_token_auth_create_users.rb

Nothing is added to the user model, application controller, or routes file as the generator should. Also, when I tried adding in some of those lines manually, I get NameError: uninitialized constant DeviseTokenAuth::Concerns::User

Any help would be greatly appreciated.

@lynndylanhurley
Copy link
Owner

@drampelt - can you check which version you have installed? I've been pushing tons of updates over the past few days, I just want to make sure you're up to date with what's in the docs.

Latest version should be v0.1.22

@drampelt
Copy link
Author

I have 0.1.21.alpha2 installed, which seems to be the latest on http://rubygems.org/gems/devise_token_auth

@lynndylanhurley
Copy link
Owner

That's odd - the latest should be v0.1.22. I must have made a mistake with
the last release. I'll be pushing another release shortly, and I'll make
sure everything works as advertised.
On Jul 20, 2014 8:55 AM, "Daniel" [email protected] wrote:

I have 0.1.21.alpha2 installed, which seems to be the latest on
http://rubygems.org/gems/devise_token_auth


Reply to this email directly or view it on GitHub
#8 (comment)
.

@lynndylanhurley
Copy link
Owner

Ok, I just pushed another release (v0.1.23). I've tested everything, and the latest version is fully functional on the demo site. Please update and verify.

I added one of those gem version badges to the README to discourage myself from making this mistake again:

Gem Version

@drampelt
Copy link
Author

Awesome, everything is working great now. Thanks!

@ghost
Copy link

ghost commented Nov 13, 2016

rails g devise_token_auth:install User auth
Running via Spring preloader in process 57673
Could not find generator 'devise_token_auth:install'. Maybe you meant 'rspec:install', 'integration_test' or 'test_unit:model'
Run rails generate --help for more options.

I'm having this problem now.

Using rails 5.0.0.1
Using devise 4.2.0
Using devise_token_auth 0.1.39
Using omniauth 1.3.1

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