CRUD in Rails 7
In this article, we are going to create a CRUD application in rails 7.
We are going to use Rails 7.0.4.2 and Ruby 3.1...
For further actions, you may consider blocking this person and/or reporting abuse
small remark:
create,update,deleteare not get requestsFirst and foremost, thank you so much @superails for taking the time to read my article. Your youtube tutorials are extremely beneficial to my learning.
And, yes, you are correct.
create,update,deleteare not get requests.A
POSTrequest is to "create."The
PATCHrequest is "update".A
DESTROYorDELETErequest is to "delete".But when we generate the controller with
rails g controller employees index new create show edit update destroy. The routes will be automatically added asget 'employees/create'get 'employees/update'get 'employees/destroy'