You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
This discussion was converted from issue #780 on December 12, 2024 08:56.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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.
Beta Was this translation helpful? Give feedback.
All reactions