This input:
<%= f.input :keywords, label: false, :input_html => {:class => "span8"}, :placeholder => "Park Slope, Prospect Heights, Fort Green..." %>
Produces this:
<div class="control-group string optional">
<div class="controls">
<input class="string optional span8" id="search_keywords" name="search[keywords]" placeholder="Park Slope, Prospect Heights, Fort Green..." size="50" type="text" />
</div>
</div>
How do I just generate the input
alone without the divs around it?
Thanks.
Well do something like this pass a params wrapper: false
like this
<%= f.input :keywords,
label: false,
wrapper: false,
input_html: { class: 'span8' },
placeholder: 'Park Slope, Prospect Heights, Fort Green...' %>
And See it would work
Hope this help
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With