How to resolve the "Something went wrong" error in the ruby ​​on the rails?

I am using Ubuntu 9.04 I just installed rubies and rails on my system and the webrick server seems to have been installed without any errors.

I created a "demo" rails application and created a "say" controller. Then I created the "hello.rhtml" view template

I started the server and entered http: // localhost: 3000 / say / hello into my browser .

But this page shows the following error message:

alt text http://lh3.ggpht.com/_STZmOsvMijk/SuLVLsuCq1I/AAAAAAAABgc/5fcPYzMID2s/s800/Screenshot-We%27re%20sorry%2C%20but%20something%20went%20wrong29%20%28%28 % 20Firefox.png

What could have gone wrong. Please help me solve this thing, I am a complete newbie to ruby ​​and rails!

+1


source to share


2 answers


There is a log file in log/development.log

that displays the complete error.
You can see what went wrong by analyzing the last request.



+3


source


This screenshot looks like you are in production mode; if you were in development mode this would display the error on the page as well as in the log. Try setting the environment variable RAILS_ENV = develop and restart webrick. As dmathieu commented, you will probably see a database error.



Also, try to avoid webrick. See this discussion .

0


source







All Articles