stouset / twitter_bootstrap_form_for

A Rails FormBuilder DSL for generating Twitter Bootstrap forms
https://github.com/stouset/twitter_bootstrap_form_for
MIT License
409 stars 110 forks source link

new option for low-verbosity horizontal forms #67

Closed hdgarrood closed 9 years ago

hdgarrood commented 11 years ago

These changes make this:

twitter_bootstrap_form_for(@user, :horizontal => true) do |user|

equivalent to this:

twitter_bootstrap_form_for(@user, :html => {:class => "form-horizontal"}) do |user|
hdgarrood commented 9 years ago

Actually, this probably isn't a good idea.