ruby on rails 3.2 - simple form and bootstrap 3 -


with recent changes on bootstrap, i'd apply common css class input_html: {class: 'form-control'} elements without manually doing all. there way make default. haven't found setting that.

jquery way of achieving aaron gong mentioned. save time of doing manually adds artificial step on client side may not cleanest solution.

you may try applying sass @extend (http://sass-lang.com/docs/yardoc/file.sass_reference.html#extend) using css selectors select type of input want modify.

example

    input[type='email'], input[type='password'] {       @extend .form-control;     } 

Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -