swt2-intro-exercise / rails-exercise-20-felixauringer

rails-exercise-20-felixauringer created by GitHub Classroom
MIT License
0 stars 0 forks source link

Edit author page should render #8

Closed swt2public closed 3 years ago

swt2public commented 3 years ago

Scenario

Given an author named 'Alan Turing' When a user visits the author's edit page Then the page should render

Hints

Feature: Changes made to the authors in an edit form (similar to the 'new' form) should be written to the database.

New controller actions (edit and update) and a new view are required. Tests could be placed in spec/features/author/edit_author_spec.rb. In a test, if an object's values should be reloaded from the database, after an action has modified them, consider the reload method: @author.reload

Here is the relevant section of the guide.

Error

Got NoMethodError: undefined method `edit_author_path' for # Did you mean? edit_polymorphic_path

16/44 exercise tests have passed

felixauringer commented 3 years ago

Fixed in 3f731541a65dba3cc13ff213f66d094683037a43