Skip to content

Instantly share code, notes, and snippets.

@franckverrot
Created October 16, 2009 12:09
Show Gist options
  • Save franckverrot/211776 to your computer and use it in GitHub Desktop.
Save franckverrot/211776 to your computer and use it in GitHub Desktop.
It's very quick to setup and enjoy. In your config/environment.rb file, just put:
[...]
Rails::Initializer.run do |config|
[...]
config.middleware.use "CodeBeautifier" do
spaces 4
content_types ["text/html", "application/xml"]
end
[...]
end
[...]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment