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> 
  1. i have downloaded theme wrap bootstrap , working fine when ran above code not able see changes password field should getting using "class="has-error".

  2. 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".

  3. 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

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -