Rails-Footnotes Resurrected For Rails 3

Posted by Rick DeNatale Wed, 18 May 2011 18:30:00 GMT
A few weeks ago I noticed that there was some recent maintenance activity on the old rails-footnotes gem. I used to use this years ago. Among other things it manipulates the backtrace you get when a rails app raises an exception in development mode so that each line in the backtrace is actually a link which will bring up your favorite editor to the appropriate line of the sourcefile. It also adds links to get to the source for the controller, views, etc for the page you are displaying in development mode. I was disappointed that the backtrace links didn't seem to work with Rails 3. So I forked the code on github, and fixed that. This morning I noticed that the backtrace code had been removed from the official code, but there were some other fixes. So I merged the official branch back to my forked version, and it seems to be working. Getting this to work with Rails 3 required a bit of ahem duck-punching of the Rails::BacktraceCleaner, and there arent any tests for this, but it seems to be working. My version is in github in a repo owned by my employer Scimed Solutions , and I've sent a pull request If you're using Rails 3, you might want to check it out, and provide feedback