This post originated from an RSS feed registered with Ruby Buzz
by Rick DeNatale.
Original Post: Rails-Footnotes Resurrected For Rails 3
Feed Title: Talk Like A Duck
Feed URL: http://talklikeaduck.denhaven2.com/articles.atom
Feed Description: Musings on Ruby, Rails, and other topics by an experienced object technologist.
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
Original article writen by Rick DeNatale and published on Talk Like A Duck | direct link to this article | If you are reading this article elsewhere than Talk Like A Duck, it has been illegally reproduced and without proper authorization.