I have a Rails 3.2.12 app where I would like to pass a parameter via a form submit button.
The param is :invoice_id. In the form the value is in @invoice.
I tried this:
<%= f.submit "Submit", :class => "btn btn-success", params: {:invoice_id => @invoice} %>
In the controller, I would access it like this:
def addinvtimes
@invoice = params[:invoice_id]
But, it ends up being nil.
Thanks for the help!
UPDATE1