Html5 for Rails
(Also, a rewrite of compass-html5-boilerplate that adds Rails asset pipeline integration).
1. In your Gemfile
group :assets do gem 'sass-rails' gem 'coffee-rails' gem 'uglifier' gem 'compass-rails' gem 'compass-h5bp' end gem 'haml-rails' # Optional - to generate haml gem 'jquery-rails' gem 'html5-rails'
2. Install your bundle
$ bundle install
3. Run the generator
$ rails generate html5:install
(Here's what it does)
4. And you're done!
To see other generators available run:
$ rails generate html5:layout --help $ rails generate html5:partial --help $ rails generate html5:assets --help
compass-h5bp gem is not a runtime dependency, but it does need to be
included in your assets group for development and asset precompiling to work.
 If you use
haml-rails gem), the install
generator will remove your application.html.erb layout so that
application.html.haml will be used instead.
 If you're upgrading from compass-html5-boilerplate you need to remove config/compass.rb before you run the generators.
 For the time being, you will want to add the following line to config/production.rb so that polyfills are precompiled on deploy:
config.assets.precompile += %w( polyfills.js )
Copyright (c) 2010-2012 Peter Gumeson. See LICENSE for full license.