Skip to content

Instantly share code, notes, and snippets.

View turlockmike's full-sized avatar

Michael Darmousseh turlockmike

View GitHub Profile
@turlockmike
turlockmike / routes.rb
Last active August 29, 2015 14:19
Redirect any path ending in .html to the same path without the .html
Rails.application.routes.draw do
get '(*path).html', to: redirect('%{path}')
post '(*path).html', to: redirect('%{path}')
#......
end