How to resolve “Something Went wrong” error in ruby on rails?
-
06-07-2019 - |
Question
I am using Ubuntu 9.04 I just installed ruby and rails in my system and the webrick server seems to have been installed without any errors.
I created a "demo" rails app and created a controller 'say'. Then i created a view template 'hello.rhtml'
I started the server and entered http://localhost:3000/say/hello in my browser.
But the following error message comes in that page :)
What could have gone wrong. Please help me resolving this thing, I am a complete newbie to ruby and rails !
Solution
There's a log file in log/development.log
that displays the complete error.
You can see what went wrong by analyzing the last request there.
OTHER TIPS
This screen shot looks like you're running in production mode; if you were in development mode, it would show the error on the page as well as in the log. Try setting the environment variable RAILS_ENV=development and restarting webrick. As dmathieu commented, you'll probably see a database error.
Also, try avoiding webrick. See this discussion.