Twitter Bootstrap icons are pretty deadly seen here.
Look at the bottom right hand corner of that section. See that email with an icon prepended? That is what I want to
I figured out a better way to do this, to keep placeholder
, label
, and other options intact.
For those that are still using old Bootstrap 2.3.x
@
<%= f.input_field :password, :required => true, :label=>false, :placeholder=>"Password" %>
The key is using f.input_field
to remove all div wrappers.
UPDATE
You can use the other solution to include a placeholder, but you cannot remove the label using that solution.
<%= f.input :email, :wrapper => :append do %>
<%= f.input_field :email, placeholder: "hello" %>
<% end %>