prix-fixe

Expand History Expand History
Collapse History Collapse History

Declare GET /notes/new route

This commit resolves the previous error:

Error:
UserSharesAMessageTest#test_visiting_the_index:
ActionController::RoutingError: No route matches [GET] "/notes/new"

Declare a route to respond to GET /notes/new HTTP requests by routing them to notes#new. The resources call is made with the only: [:new] option to exclude all (actions except for #new) routes generated by a bare resources :notes call.

After making this change, the suite raises a new error:

Error:
UserSharesAMessageTest#test_visiting_the_index:
AbstractController::ActionNotFound: The action 'new' could not be found for NotesController