CommonThread

Textmate Footnotes on Edge

Posted by ben, Wed Dec 05 22:38:00 UTC 2007

You may have experienced some issues with textmate footnotes if you are running on edge rails. There are 2 different problems that I have run into.

The first is similar to my earlier post about Haml breaking my footnotes. When you are on a page with the new html.erb extension you don’t get footnotes and that is fixed in similar fashion, by adding the “html.erb” to the list of file extentions in the add_footnotes! method of the file vendor/plugins/footnotes/lib/textmate_footnotes.rb. Mine now looks like .. [“html.erb”, “haml”, “rhtml”, “rxhtml”]

The second is that error pages no longer show a stack trace but rather just a 500 page with no explanation. The reason is that the render_file methods in the file vendor/plugins/footnotes/templates/rescues/template_error.rhtml still point to ”.rhtml” files and edge and 2.0 moved to the new file extension ”.erb” so you need to change both refences to point to ”/_trace.erb” & ”/_request_and_response.erb”

I made a pastie for your convenience with the two diffs to make it easier …

Textmate Footnotes fix for edge rails & 2.0

Filed Under: | Tags:

Comments

  1. José Valim 05.12.08 / 10AM
    Hey! Footnotes has new home (git one): http://github.com/drnic/rails-footnotes/tree/master And new features (check them at): http://josevalim.blogspot.com/2008/05/footnotes-v30.html

Have your say

A name is required. You may use HTML in your comments.




Categories