Some (one so far) helper methods for creating Bootstrap HTML.
Add this line to your application's Gemfile:
gem 'bootstrap_helperized'
And then execute:
$ bundle
Or install it yourself as:
$ gem install bootstrap_helperized
If you're using Ajax to send in the form:
= standard_modal_box(:id => 'new_user', :title => 'New user')
If you want to add the form beforehand you can pass as a block:
= standard_modal_box(:id => 'new_user', :title => 'New user') do
= YOUR FORM HERE
To trigger the modal box:
= link_to 'New user', '#new_user', :class => 'btn', 'data-toggle' => 'modal'
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request