Bootstrap Component Helper

This is a simple gem that wraps some components of Bootstrap. It provides unified components using helpers, faces to someone isn't very familiar with HTML and CSS or doesn't like using them throughout the pages such as some CRM projects.

It's compatible with Rails 4+ and Bootstrap 2.3.2.

Installation

Notice: This gem has included bootstrap-sass and bootstrap-modal-rails for you.

Add this line to your application's Gemfile:

gem 'bootstrap-component-helper', '~> 0.2.3'

And then execute:

$ bundle install

Add assets

Execute the installation generator:

$ rails g bootstrap:component_helper:install

Usage

Visit Examples and read the comments of app/helpers/*.rb, A dummy Rails project had been added to test directory. In order to use it:

  1. $ cd test/dummy
  2. $ rails s
  3. access http://localhost:3000 to view examples locally.

Contributing

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