Sha256: f0a67eb1bce0cf8332a3f06e92b3759903f7646fe05c6036fc57aab460bbc13e
Contents?: true
Size: 1.97 KB
Versions: 3
Compression:
Stored size: 1.97 KB
Contents
h1. !http://railsapps.github.io/images/rails-36x36.jpg(Rails Layout Gem)! Rails Layout Gem Rails Layout is a utility gem you can use during development to set up a default application layout with partials for Rails flash messages and navigation links. It is a Rails generator that you add to your Rails application Gemfile. The Rails Layout gem generates application layout files: * app/views/layouts/application.html.erb * app/views/layouts/_messages.html.erb * app/views/layouts/_navigation.html.erb There are options to generate layout files suitable for use with the following front-end frameworks: * @simple@ - simple layout * @bootstrap2@ - 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. Simple Layout To create a set of simple layout files: <pre> $ rails generate layout simple </pre> h2. Twitter Bootstrap 2.3 Layout To create layout files for use with Twitter Bootstrap 2.3: <pre> $ rails generate layout bootstrap2 </pre> 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rails_layout-0.1.4 | README.textile |
rails_layout-0.1.3 | README.textile |
rails_layout-0.1.2 | README.textile |