Plugins - Exception Logger
Add to favoritesThe Exception Logger logs your Rails exceptions in the database and provides a funky web interface to manage them.
First you need to generate the migration:
./script/generate exception_migration
After that, visit /logged_exceptions in your application to manage the exceptions.

running with config.actioncontroller.sessionstore = :activerecordstore (no cookie based session)
my config.actioncontroller.session :secret is defined, and protectfrom_forgery :secret => 'secretpass' is defined in my application.rb
got an ActionController::InvalidAuthenticityToken in Logged_exceptions#index
No :secret given to the #protectfromforgery call. Set that or use a session store capable of generating its own keys (Cookie Session Store)
the formremotetag in logged_exceptions/index.rhtml (line 53) is not sending the :secret
I had the same problem with another Ajax call form, solved by writing <%= javascripttag "window.token = '#{formauthenticitytoken}'" %> in the <head> tried it there but no result
I was getting a "flag after width" error message which was stopping the exceptions from being persisted to the database.
The fix for this was to replace %*-s with %-s (that is, remove the asterix) on line 49 of logged_exception.rb.
My environment: Rails 2.0.2 Windows XP
Just a reply to Hans comment, it's viewpath ==> templateroot method that needs to be rename in the plugin directory, init.rb file.
I changed viewpaths to templateroot in init.rb, then rake db:migrate. And added the following to the routes map.connect '/loggedexceptions', :controller => 'loggedexceptions'
And got it to work under Rails 1.2.3
I get the same exact error and 5 hours still can't figure out what is going on? Rails is theoretically interesting but it is really sucking up my time as far as chasing down every little error. I don't understand
Rails 1.2.3 + Ruby 1.8.6 ruby script/generate exception_migration Gives the error: ./script/../config/../vendor/plugins/exceptionlogger/init.rb:1:in
load_plugin': undefined methodviewpaths=' for LoggedExceptionsController:Class (NoMethodError)Missing template script/../config/../app/views/hello/index.rhtml
I get this when I try to go to /logged_exceptions
Template is missing
Missing template script/../config/../app/views/logged_exceptions/index.rhtml
Any idea why?