How do I find webrick errors in NetBeans for Ror?
I start my adventure with Ruby on Rails and in the IDE I choose Netbeans. He connected the Webrick server and it worked well. But after some changes in my first application, it gives me an internal 500 error - but nothing shows up in the console. And older actions give the same result.
How can I find where the problem is? I am working on an Ubuntu system.
0
pbrodka
source
to share
3 answers
What you can also do is add the following line to your "application.rb" controller:
ActiveRecord::Base.logger = Logger.new(STDOUT)
Then you will get the debug output in the WEBrick "Exit" window in Netbeans.
0
Sebastian
source
to share
It is best to always open a terminal window and display the following
tail -f log/development.log
This will give you the syntax of your magazine's color feed in real time as you work with your application.
+1
mwilliams
source
to share
Answered by myself - logs / development.log
0
pbrodka
source
to share