prix-fixe

Expand History Expand History
Collapse History Collapse History

Declare app/views/notes/new.html.erb view

This commit resolves the previous error:

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

By declaring a template that corresponds to notes#new, we’re once again relying on Rails’ default action routing and rendering conventions.

After introducing the blank template file, we’re faced with a familiar error message:

Error:
UserSharesAMessageTest#test_visiting_the_index:
Capybara::ElementNotFound: Unable to find field "Message"
    test/system/user_shares_a_message_test.rb:9:in `block in <class:UserSharesAMessageTest>'