Bootstrap Helper (bs-helper)

This is a gem that wraps some components of bootstrap, pnotify and bootbox. It aims to provide using these components in more rails way. It's compatible with bootstrap 2.3.2.

Installation

Install Bootstrap first! You can use bootstrap-sass or twitter-bootstrap-rails

Add this line to your application's Gemfile:

gem 'bs-helper'

And then execute:

$ bundle

Add assets

Execute the installation generator:

rails g bshelper:install

If you want to use replace default alert and confirm when using data-confirm of jquery_ujs with bootbox.alert and bootbox.confirm, you can use:

rails g bshelper:install with-bootbox

Usage

Visit Examples and read the comments of app/helpers/.rb Read the comments of app/helpers/.rb I'm sorry that I haven't enough time to write documents.

You also can run the live demo on your machine by doing below:
1. git clone https://github.com/bigxiang/bs-helper.git
2. cd bs-helper/test/dummy
3. bundle install
4. rake db:migrate
5. rake db:seed
6. rails s

Make sure you are using Rails 4.0

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