anjlab / bootstrap-rails

Twitter Bootstrap CSS (with Sass flavour) and JS toolkits for Rails 3 projects
https://github.com/anjlab/bootstrap-rails
729 stars 96 forks source link

Correct shadow/border on forms #81

Closed mmahalwy closed 10 years ago

mmahalwy commented 10 years ago

I am still not getting the correct correct look for the form inputs as on the bootstrap documentation. Also, form horizontal does not work properly.

mmahalwy commented 10 years ago

The way I got it fixed is to include the class "form-control"

To fix it for the time being, you will have to manually mimic bootstrap's docs to the rails as opposed to previously when it all worked like magic with bootstrap 2.

Also, I'd advise to just make your own tags:

def my_text_field_tag(name, value) text_field_tag(name, value, class: "form-control") end

yury commented 10 years ago

Yep, this is how new BS add styles to controls.