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

Input fields don't have rounded corners #75

Closed JustusLauten closed 10 years ago

JustusLauten commented 11 years ago

I have version 3.0.0.2 of the gem installed and when I use simple input fields (e.g. %input{type:"text", placeholder:"Type something…"} ) the corners are not rounded. Somehow my input class is not extended by the form-control class.

I also restarted the server after installation and did "rm -rf tmp/cache"

I require the bootstrap style as follows in my application.css.scss: = require jquery.ui.all = require twitter/bootstrap = require_self = require "custom" ...

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

jrhorn424 commented 10 years ago

:+1: for custom tags.