What should be the best practices for controller validation of forms?
In Rails, if the edit and create actions are successful, the request gets redirected to a different action. If it fails, the current action re-renders the current view and shows the error message on the form.
Any ideas on what should be the convention to do in loco?
Describe the solution you'd like
If you feel that this should be the convention, then this convention should be part of the scaffold.
Feature Request
What should be the best practices for controller validation of forms? In Rails, if the
edit
andcreate
actions are successful, the request gets redirected to a different action. If it fails, the current action re-renders the current view and shows the error message on the form.Any ideas on what should be the convention to do in loco?
Describe the solution you'd like
If you feel that this should be the convention, then this convention should be part of the scaffold.