swt2-intro-exercise / rails-intro-21-rsommerfeld

rails-intro-21-rsommerfeld created by GitHub Classroom
MIT License
0 stars 0 forks source link

Edit author page should save changes #15

Open swt2public opened 2 years ago

swt2public commented 2 years ago

Scenario

Given an author named 'Alan Turing' When a user visits the edit page of the author Alan Turing Then no error should occour

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 (5.11) of the Rails Guide.

Error

Got AbstractController::ActionNotFound: The action 'edit' could not be found for AuthorsController

16 exercise tests have passed. There are 44 in total. You will solve multiple at once towards the end.

swt2public commented 2 years ago

Sorry, it's not working for me yet:

Scenario

Given an author named 'Alan Turing' When a user visits the edit page of the author Alan Turing And changes first name to 'Bob' Then no error should occour

Error

Got Capybara::ElementNotFound: Unable to find field "author[first_name]" that is not disabled

If you have problems solving this task, please don't hesitate to contact the teaching team!