I have this code :
<%= form_for :biblio, url: {action: "create"} do |f| %>
[cut for brievity]
<%= f.text_field :auteur, size: 100, class:"champs_auteur" %>
That creates this html :
<input size="100" class="champs_auteur" name="biblio[auteur]" id="biblio_auteur" type="text">
I'm trying to get the name to be : name="biblio[auteur][1]"
I don't see how.
You can use:
<%= f.text_field :auteur, size: 100, class:"champs_auteur", name: "biblio[auteur][1]" %>
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