开发者

Action controller: Exception Caught while trying to acces recently generated controller on empty Ruby on Rails project

I am new to ruby on rails, just trying to follow some tutorials.I just entered:

rails generate controller helloWorld index

then i started rails server and tried to access http://localhost:3000/hello_world/index and got

Action controller: Exception Caught 

Active开发者_C百科Record::ConnectionNotEstablished

ActiveRecord::ConnectionNotEstablished

in the browser


Did you run rake db:create db:migrate before starting the server.

If you did, pls check your database configuration in config/database.yml. If you can't figure it out, please let us know the contents of that file.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜