Hi guys i have a value which i wan't to add to the database dynamically. The value is made with jQuery and it outputs to the
So based on the users input that value changes.
I want to save that value to the database while using something like
<%= f.text_field :total, id: 'invoice_total' %>
You can add a hidden field and when set the value to
p set this input value:
<%= f.hidden_field :total, id: 'invoice_total_input' %>
and then you can do: