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

Unable to call rails g devise_token_auth:install within rails engine #465

Closed
djsegal opened this issue Dec 11, 2015 · 2 comments
Closed

Comments

@djsegal
Copy link
Contributor

djsegal commented Dec 11, 2015

getting this error when I run it within my api engine:

.../activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:878:in `retrieve_connection': No connection pool for ActiveRecord::Base (ActiveRecord::ConnectionNotEstablished)
  from .../activerecord/lib/active_record/connection_handling.rb:113:in `retrieve_connection'
  from .../activerecord/lib/active_record/connection_handling.rb:87:in `connection'
  from /devise_token_auth/lib/generators/devise_token_auth/install_generator.rb:154:in `database_name'
  from /devise_token_auth/lib/generators/devise_token_auth/install_generator.rb:136:in `postgres?'
  from /devise_token_auth/lib/generators/devise_token_auth/install_generator.rb:132:in `json_supported_database?'
  from (erb):43:in `migration_template'
  • i believe this is because the base directory doesn't have a config/database.yml file (because it is actually kept at ./spec/dummy/config/database.yml).
  • i tried monkey around with it to get it to work, but I eventually gave up and just made json_supported_database? always return true
@shifakhan
Copy link

@djsegal Were you able to get devise_token_auth running in the engine ?

@djsegal
Copy link
Contributor Author

djsegal commented Jul 8, 2016

Have long since refactored my own code and genuinely have no clue what this is about

@djsegal djsegal closed this as completed Jul 8, 2016
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