ruby on rails - bootstrap theme: has-error is not working with password field -
i have following code:
<div id="example1" class="has-error"> <section> <label class="input"> <%= f.label :email %> <%= f.text_field :email, placeholder: "enter email"%> </label> </section> </div> <div id="example" class="has-error"> <section> <label class="input"> <%= f.label :password %> <%= f.password_field :password, placeholder: "enter password" %> </label> </section> </div>
i have downloaded theme wrap bootstrap , working fine when ran above code not able see changes password field should getting using "class="has-error".
it works fine "text" type not working password field. guess has theme using. not sure, saying because when working without theme above code worked fine both types "text" "password".
i not able catch error, not able figure out error. people here , posting query here. thank you.
you can try changing order of css files if don't want theme override bootstrap.
hope helps!
Comments
Post a Comment