0.0
No commit activity in last 3 years
No release in over 3 years
Generates a layout based on http://getskeleton.com
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.10.0
>= 3.0.0

Runtime

>= 3.0.0
 Project Readme

Skeleton Rails¶ ↑

skeleton_rails is a simple gem that allows you to generate a layout file based on the awesome [Skeleton](getskeleton.com) in your rails application. It currently works with Rails 3.0.0 and later.

Installation¶ ↑

gem install skeleton_rails

or in your Gemfile

gem 'skeleton_rails'

Then, to create the layout:

rails g skeleton_layout [NAME] [--haml]

‘NAME` is optional and defaults to `application`. The generator will copy a layout file to the app/views/layouts directory, as well as copying the stylesheets, javascript, and image files to their respective locations. Skeleton also includes a 404.html and a robots.txt file.

If the ‘–haml` option is specified, a haml template will be created instead of ERB.

Notes/Gotchas¶ ↑

  • If you are running Rails 3.0 and NOT using jQuery, tabs.js will throw an error. Just remove it or refactor it to use your js framework.

Future¶ ↑

  • Maybe add sass?

Issues/Suggestions¶ ↑

If you find anything amiss with this gem, please feel free to add a github issue .

If you have a suggestion, please feel free to fork, make the change, and submit a pull request.

Credit¶ ↑

Thanks to Dave Gamache for making Skeleton, and thanks to Ryan Bates for making Nifty Generators, which I basically just copied to make the structure for this gem.