keeping things simple (hopefully)
December 12, 2007
Filed under: Rails — Jason @ 6:31 pm

In order to get proper syntax highlighting for the new Rails 2 naming conventions of templates (html.erb) in Textmate, just fire up Textmate and go into the bundle editor and make the changes as follows:

Textmate > Bundles > Bundle Editor > Show Bundle (or just hit ctrl-opt-cmd B)

picture-19.jpg

Select Languages in the drop down menu

Textmate

Go to Ruby on Rails > HTML (Rails)

On the second line just change the code from:

fileTypes = ( 'rhtml');

to

fileTypes = ( 'rhtml', 'erb' ); #For backwards compatability

and you should be good to go…

P.S. here’s a link to a code snippet that will allow you to change all of your rhtml file extensions to html.erb (warning: I have not yet tested this so use at your own risk)

November 29, 2007
Filed under: Rails — Jason @ 9:32 pm

This is good news. I’ve been working with Rails 2 code for a bit now and have been wondering when this release was gonna make hit. Now it seems that it’s coming in just a few weeks.

You can catch the blog posting at the Rails weblog here. To learn more about the new features you should follow the link to the original Preview Release posting.

Also, you can check out Ryan Daigle’s blog  to find out specific feature updates. Be sure to look for the topic “What’s new in Edge Rails.”