rails-authentication-from-scratch
rails-authentication-from-scratch copied to clipboard
Reorder controller methods to enhance developer experience and improve readability
First of all, thanks for this guide. It's been super interesting going through it
I found the order of controller actions very strange because usually they go in pairs:
newwithcreateeditwithupdate
And from a developer perspective, you build a new template (first) to be used by the create action (second). Having it backwards or sometimes mixed up is kind of strange.
The Rails scaffold generator uses another order where it put puts all GET requests first and all others second. However I find this one a bit more aligned with the developer's experience