Rails override id on create controller with user specified id in forms in new.html.erb
To change an id in rails its like Invoice.create(id: 25) works but in my new.html.erb, i have user specify an id (:invoiceid) and i want that id to be linked to that id.
so how do you do it? Invocie.create(id: invoiceid) wont work.
Aucun commentaire:
Enregistrer un commentaire