Mysql Rails

software development

#1

Hey everybody,

I’ve just created a really simple ruby application using scaffolding (I’ve followed the getting started course : http://guides.rubyonrails.org/getting_started.html). Anyway as soon as I try to get to a page which call the db it put the “sorry something went wrong” the problem is that I don’t get nothing in any log file so I can’t know what’s going wrong.

It’s some basic stuff, must have happened to someone else.

Thanks!


#2

Your log file is in log/production.log if your environment is production (which I assume is the one you are using), you can just run $ tail -f log/production.log and refresh the page, it will tell you the problem, when the message “Somenthig went wrong” is showing is because you have a 500 (Internal Server Error) so you either have a syntax error somewhere or a problem with configuration.