ruby on rails - Horizontal form -


i'm trying study rails bootstrap.

i think simple form useful.

so, wrote rails this.

= simple_form_for @user, :as => :user, :url => {:action => 'serarch'}, :html => {:class => 'well'} |f|   = f.input :user_name   = f.input :birth_day 

it's pretty good.

but, want put these input forms horizontally on browser.

how ?

i don't want use f.input_field.

input useful input_field, isn't it?

are trying use bootstrap's horizontal forms?

add 'form-horizontal' html class, e.g.

= simple_form_for @user, :as => :user, :url => {:action => 'serarch'}, :html => {:class => 'well form-horizontal'} |f|   = f.input :user_name   = f.input :birth_day 

Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -