{"id":31,"date":"2007-12-19T07:18:02","date_gmt":"2007-12-19T07:18:02","guid":{"rendered":"http:\/\/installingcats.com\/2007\/12\/19\/textmate-not-recognizing-htmlerb-in-rails-html-bundle\/"},"modified":"2007-12-19T07:18:02","modified_gmt":"2007-12-19T07:18:02","slug":"textmate-not-recognizing-htmlerb-in-rails-html-bundle","status":"publish","type":"post","link":"https:\/\/installingcats.com\/2007\/12\/19\/textmate-not-recognizing-htmlerb-in-rails-html-bundle\/","title":{"rendered":"Textmate not recognizing html.erb in Rails HTML Bundle"},"content":{"rendered":"

With Ruby on Rails 2.0.2 fresh out of the gates and hordes of (us) DHH fanboys coding away in Textmate on their Macs will soon realize that the new .rhtml template is now .html.erb. This file extension isn’t recognized as Rails (HTML) by default in Textmate 1.5.7.<\/p>\n

All you need to do is edit the correct Textmate Bundle which you get to by finding in the Textmate Menu: Bundles -> Bundle Editor -> Show Bundle Editor -> click the arrow beside Ruby on Rails -> near the bottom of the list click on Rails (HTML), then on the right hand side area find:
\n
\nfileTypes = ( 'rhtml' );
\n<\/code>
\nand change it to:
\n
\nfileTypes = ( 'rhtml', 'erb' );
\n<\/code><\/p>\n

Greg is the man and posted the original fix to the Textmate html.erb bundle problem<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"

With Ruby on Rails 2.0.2 fresh out of the gates and hordes of (us) DHH fanboys coding away in Textmate on their Macs will soon realize that the new .rhtml template is now .html.erb. This file extension isn’t recognized as Rails (HTML) by default in Textmate 1.5.7. All you need to do is edit the […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[74,5,75],"_links":{"self":[{"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/posts\/31"}],"collection":[{"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/comments?post=31"}],"version-history":[{"count":0,"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/posts\/31\/revisions"}],"wp:attachment":[{"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/media?parent=31"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/categories?post=31"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/tags?post=31"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}