Wednesday, July 30, 2008

Rails Tip: URLs ending with .html

This is not a must by all means, just for the hack of it.

add to ApplicationController

def default_url_options(options)
{ :format => 'html' }
end


and you don't need any routes.rb changes.

No comments:

Post a Comment

Tell me what you think