April 3rd, 2007

.erb lives a short life

Earlier this year the default Rails template extension switched from .rhtml to .erb and from .rxml to .builder. Yesterday Rick committed another change which modifies the defaults once again.

If you are keeping up with edge you should now be using .html.erb as opposed to .erb, and .xml.builder as opposed to .builder.

I assume this change was made to make a cleaner separation between the templating language being used and the content-type. This allows you to use something like .css.builder for css files rendered using builder, or .xml.erb for xml files using erb.

As always, Edge Rails is subject to change, use at your own risk!



March 28th, 2007

Goodbye ";", it's been fun!

The use of “;” to delineate non-crud member & collection actions has been replaced as of Changeset #6485 with the much loved “/” character.

As long as you’re using the default url generators (edituserpath) you shouldn’t have to change anything in your code. The only place this causes issues is if you’ve hard-coded URIs in your APIs or your users have bookmarked pages.