dimanche 26 avril 2015

MVC controller changes input field after submission

I have an amount field in my Form that I multiply by 100 after submission in my controller. The problem is that the view renders the multiplication before moving on to the next page. How can I avoid that? More generally, how do I prevent the view to display the modified value once it's submitted?

I'm using ember.js with rails in the backend, but I think it's more of a MVC problem.




Aucun commentaire:

Enregistrer un commentaire