<%= text_field_tag :barcode, params[:barcode] %>
he generates
<input id="barcode" name="barcode" type="text"></input>
but i need
<input type="text" name="barcode" id="autocomplete"></input>
But in the documentation, I did not find a way to change the identifier attribute.
I need to use text_field_tag because it fills the text field with parameters if submit doesn't work.
If I think that I'm worried, if I change the identifier, it does not populate the parameter ?!
ruby-on-rails-3
Muflix
source share