Ruby - ActiveRecord::ConnectionNotEstablished

前端 未结 12 1808
臣服心动
臣服心动 2020-12-30 19:08

I am rather new to Ruby and have been following along with the book \"Ruby On Rails 3 Tutorial - Learn Ruby by Example - by Michael Hartl\". I am currently in Chapter 3 whic

12条回答
  •  醉话见心
    2020-12-30 19:44

    Update the adapter in config/database.yml file to the database name being used by your application and restart your rails. This will resolve the issue.

    For me it got reset to some other DB name, so it was giving error. After updating it to "sqlite3", it worked fine.

提交回复
热议问题