Search code examples
ruby-on-railsnetbeanswebrickserver-error

How to find webrick bugs in NetBeans for Ror?


I'm starting my adventure with Ruby on Rails and as IDE I choose Netbeans. It has bundled server Webrick and it had worked good. But after some changes in my first application it gives me internal error 500 - but nothing shows in console. And older actions give the same result.

How can I find where the problem is? I work on Ubuntu system.


Solution

  • What you can also do is add the following line to your controller "application.rb":

    ActiveRecord::Base.logger = Logger.new(STDOUT)
    

    Then you will get debugging output in WEBrick's "Output" window within Netbeans.