TextMate and Rails 2.0

February 24, 2008

I’m using TextMate on Mac OS X version 10.5 to develop Rails apps. Rails 2.0 has a new naming convention for views (the “.rhtml” file extension becomes “.html.erb”). TextMate’s syntax coloring doesn’t recognize the new file extension. What to do? A few people have suggested tweaks using TextMate’s Bundle Editor (here and here). A better option is the new TextMate Rails 2.0 bundle now under development by Dr Nic Williams. Right now, it’s only available for download using git but maybe by the time you read this it will have moved to the official Textmate svn repository. Check the Ruby on Rails: TextMate Google Group for more information.