Sha256: d7b5b9e271a2753a662a4cf2ee1c6050c7a9b45350bc7d17bca8950caa3ff4d9
Contents?: true
Size: 1.61 KB
Versions: 1
Compression:
Stored size: 1.61 KB
Contents
# Booter One more twitter bootstrap wrapper for Rails. ## Installation In your Gemfile, add the following dependencies: ``` ruby gem 'booter' ``` Run: ``` $ bundle install ``` Add `bootstrap` in your application.css: ``` css /* *= require bootstrap * ... */ ``` And optionally add 'bootstrap' in your application.js: ``` javascript //= require jquery //= require jquery_ujs //= require bootstrap //= ... ``` ## Usage Use <tt>nice_form_for</tt> helper method to draw nice bootstrap forms: ``` haml -# Simple = nice_form_for @user do |f| = f.errors_for = f.email_field :email = f.password_field :password = f.submit 'Sign in' -# Complex = nice_form_for @user do |f| = f.errors_for = f.email_field :email, class: 'input-medium' = f.password_field :password = f.check_box :remember_me = f.actions do = f.submit 'Sign in' = f.button 'Cancel' = f.button 'Danger button', style: :danger = f.submit 'Submit without the primary class', style: :none -# Modal = nice_form_for @user, modal: true, id: 'auth' do |f| = f.errors_for = f.email_field :email = f.password_field :password = f.submit 'Sign in' %p= link_to 'Open auth form', '#auth-modal', data: { toggle: 'modal' } ``` ## Demo See [live demo](http://growing-cloud-6915.heroku.com) or browse [source code](https://github.com/boshie/booter-demo) ## Contributors * Alexey Vakhov - [https://github.com/avakhov](https://github.com/avakhov) * Alexey Yurchenko - [https://github.com/alexesDev](https://github.com/alexesDev) ## Status [<img src="https://secure.travis-ci.org/boshie/booter.png"/>](http://travis-ci.org/boshie/booter)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
booter-1.0.0.rc1 | README.md |