I currently have the following piece of code :
<div class = "span 3">
<%= f.label :volunteers, "Number of Volunteers" %>
<%= f.input :volunteers %>
</div>
And this is what is showing on the web page :
Number of Volunteers
volunteers [#input box is here ]
I want to remove the “volunteers” label, as it’s being automatically inserted.
Try this:
<div class = "span 3"><%= f.input :volunteers, :label => "Number of Volunteers" %>
</div>
Start using the
simple_formgem. It will make your life a lot easier.