Simple Form Blank Label

Mini John picture Mini John · Jul 5, 2013 · Viewed 19.7k times · Source

So im using Simple Form for my Rails App, and i need to get rid of the label on every input that comes with with simple form.

I Tried: <%= f.input :email, class: "login-field", label: "" %> leaving the label blank, but this didn't work.

I'm relatively new to rails, could somebody explain how to achieve this ?

Edit: I'm trying to achieve this format:

<input type="password" class="login-field" value="" placeholder="Password" id="login-pass" />

Thank you.

Answer

vee picture vee · Jul 5, 2013

Have you tried label:false instead of label:"":

<%= f.input :email, class: "login-field", label: false %>