prix-fixe

Expand History Expand History
Collapse History Collapse History

Replace post, get declarations with resources

This commit refactors the Request Routing layer of our application by combining our separate post and get route declarations into a single resources :notes call.

The resources route helper will generate Rails seven conventional actions. Our application currently depends on only two of those actions: new and create.

By invoking resources with the only: [:new, :create] option, the application will exclude all action routes except for #new and #create.

After making this change and running the tests again, the suite still passes.