Restful Rails Edit vs Update

edit action is responsible for rendering the view

update action is responsible for interacting with the model (db updates etc)

If you run rake routes you will see the difference between the verb and the action. Typically, the create/update actions are used when submitting a form. This differs from the new and edit actions as these are used to render the view (that displays the form to be submitted).

Leave a Comment