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 :)

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

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

Was it helpful?

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top