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:
$ cd test/dummy
$ rails s
- access
http://localhost:3000
to view examples locally.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request