H5bp Rails

screenshot of H5bp Rails

H5bp Rails

Rails 3.1+ compatible Application Template based on the HTML5 Boilerplate project

Overview

This product is a Rails application template that can be used to quickly set up a new Rails app using Paul Irish's HTML5 Boilerplate. It is an upgraded version of the Rails 3.0.x application template and includes various features to enhance the application's HTML and CSS files. The template can be downloaded and applied directly from GitHub.

Features

  • Rails 3.1+ compliant: This template is fully compatible with Rails 3.1 and above.
  • HTML5 Boilerplate integration: It downloads and merges the HTML5 Boilerplate index.html and style.css files with the default Rails application files.
  • CoffeeScript integration: It downloads a version of the HTML5 Boilerplate plugins.js file converted to CoffeeScript, allowing for easier integration with Rails applications.
  • Miscellaneous assets: It downloads various assets from HTML5 Boilerplate, such as icons and .htaccess files, to enhance the application's functionality.
  • Gemfile update: The template also updates the Gemfile to include Modernizr-Rails, which provides the Modernizr.js dependency used by HTML5 Boilerplate.

Installation

To use this template, follow the steps below:

  1. Run the following command to create a new Rails app using the template:

    rails new <appname> -m https://github.com/russfrisch/h5bp-rails/raw/master/h5bp.rb
    
  2. Alternatively, if you have an existing Rails project, you can apply the template manually by running the following command:

    rake rails:template LOCATION=https://github.com/russfrisch/h5bp-rails/raw/master/h5bp_apply.rb
    

    Note that manual integration may require additional steps.

Summary

This Rails application template provides a convenient way to integrate Paul Irish's HTML5 Boilerplate into a new or existing Rails app. By downloading and merging the HTML5 Boilerplate files, updating the Gemfile, and including miscellaneous assets, the template enhances the application's front-end capabilities. Users can contribute improvements or suggestions by submitting a push request.