hoangdangninh
1/21/2017 - 11:52 PM

good practices for CRUD operations in ROR

good practices for CRUD operations in ROR

A frequent practice is to place the standard CRUD actions in each controller in the following order: index, show, new, edit, create, update and destroy. You may use any order you choose, but keep in mind that these are public methods; as mentioned earlier in this guide, they must be placed before any private or protected method in the controller in order to work.