Project

gumby

0.0
No commit activity in last 3 years
No release in over 3 years
Gumby Framework for Rails
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Gumby Framework - RoR gem

unmaintained

Gumby Framework gem for Rails asset pipeline. Based on Gumby Framework 2.

Installation

Add this line to your application's Gemfile:

gem "gumby"

And then execute:

$ bundle install

Or install it yourself as:

$ gem install gumby

Usage

You will need to add also the jquery-rails and modernizr-rails gem to your gemfile:

# Gemfile

gem "jquery-rails"	
gem "modernizr-rails"
gem "gumby"

Then run bundle install.

You will need to add also this tag to your HTML head tag:

<%= javascript_include_tag :modernizr %>

CSS

Add this line at the end of your application.css

*= require gumby

Javascript

You will need to add jquery and modernizr and global Gumby object in your application.js:

//= require jquery
//= require jquery_ujs
//= require gumby

After this line, you can add the Gumby JS plugins; you have available the following plugins:

//= require ui/gumby.checkbox
//= require ui/gumby.fittext
//= require ui/gumby.fixed
//= require ui/gumby.navbar
//= require ui/gumby.radiobtn
//= require ui/gumby.retina
//= require ui/gumby.skiplink
//= require ui/gumby.tabs	
//= require ui/gumby.toggleswitch
//= require ui/jquery.validation

Finally, add initialize JS.

//= require gumby.init

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request