Image 01 Image 02

TextMate and Rails 2.x : Recognizing .erb files

Posted on 2nd November 2008 by Guillaume Moigneu
0

As Rails 2.x is now available, you must have saw that the views templates are now .html.erb files instead of .rhtml ones. Those new extensions are not recognized for those who are coding with TextMate on Mac.

All you need to correct this issue is going to Textmate Menu: Bundles -> Bundle Editor -> Show Bundle Editor -> Ruby on Rails -> Rails (HTML) and find the line :

fileTypes = ( 'rhtml' );

Now replace it with :

fileTypes = ( 'rhtml', 'erb' );

And you’re done.

Popularity: 87% [?]

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Furl
  • Ma.gnolia
  • Scoopeo
  • Technorati
  • TwitThis


Leave a reply...