Ruby-on-Rails [SOLVED]: undefined method `devise' for Install (call 'Install.connection' to establish a connection):Class

Ruby-on-Rails [SOLVED]: undefined method `devise' for Install (call 'Install.connection' to establish a connection):Class

Home Forums Frameworks Ruby on Rails Tutorials Ruby-on-Rails [SOLVED]: undefined method `devise' for Install (call 'Install.connection' to establish a connection):Class

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #246768

    Cloudy Point
    Keymaster

    QuestionQuestion

    So when I run my application using rails s -b $IP -p $PORTit gives me the following error:

    /usr/local/rvm/gems/ruby-2.3.4/gems/activerecord-4.2.5/lib/active_record/dynamic_matchers.rb:26:in `method_missing': undefined method `devise' for Install (call 'Install.connection' to establish a connection):Class (NoMethodError)
    

    In my gemfile, I already added gem 'devise' and in my development.rb I have put config.action_mailer.default_url_options = { host: 'localhost', port: 3000 } Note that I’m currently using cloud 9 ide for this project. The error occurs when I also try to migrate my database, also, I get the same error trying to run rails g devise:install Thanks in advance!

    #246769

    Cloudy Point
    Keymaster

    Accepted AnswerAnswer

    You need to run bundler after putting gem 'devise' on your Gemfile run bundle install details here very nicely described you can follow this step by step.

    Hope to help

    Source: https://stackoverflow.com/questions/47969939/undefined-method-devise-for-install-call-install-connection-to-establish-a
    Author: fool
    Creative Commons License
    This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.