Sha256: d2597f264674d86e89e63800146248d9776edf046b4431cf62083a3e316850c5

Contents?: true

Size: 1.68 KB

Versions: 2

Compression:

Stored size: 1.68 KB

Contents

h1. !http://railsapps.github.io/images/rails-36x36.jpg(Rails Layout Gem)! Rails Layout Gem

The Rails Layout gem creates application layout files. It is a Rails generator that you add to your Rails application Gemfile.

The Rails Layout gem generates application layout files suitable for use with the following front-end frameworks:

* Twitter Bootstrap 2.3
* (more to come)

h2. Installation

Add it to your Rails application Gemfile:

<pre>
group :development do
  gem 'rails_layout'
end
</pre>

If you want to use a newer unreleased version from GitHub:

<pre>
group :development do
  gem 'rails_layout', github: 'RailsApps/rails_layout'
end
</pre>

Use Bundler to install the gem:

<pre>
$ bundle install
</pre>

h2. Generating Layouts

To create layout files for use with Twitter Bootstrap 2.3:

<pre>
$ rails generate layout bootstrap2
</pre>

Creates files:

* app/views/layouts/application.html.erb
* app/views/layouts/_messages.html.erb
* app/views/layouts/_navigation.html.erb

h2. Help

To see help messages:

<pre>
$ rails generate layout --help
</pre>

h2. Issues

Any issues? Please create an "issue":http://github.com/RailsApps/rails_layout/issues on GitHub. Reporting issues (and patching!) helps everyone.

h2. Credits

Daniel Kehoe maintains this gem as part of the "RailsApps project":http://railsapps.github.io/.

Please see the "CHANGELOG":https://github.com/RailsApps/rails_layout/blob/master/CHANGELOG.textile for a list of contributors.

Is the gem useful to you? Follow the project on Twitter: "@rails_apps":http://twitter.com/rails_apps. I'd love to know you were helped out by the gem.

h2. MIT License

"MIT License":http://www.opensource.org/licenses/mit-license

Copyright © 2013 Daniel Kehoe

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails_layout-0.1.1 README.textile
rails_layout-0.1.0 README.textile