From ffd9776536355e7875bcf59b391470f4f6887ea9 Mon Sep 17 00:00:00 2001 From: Matt Law Date: Wed, 12 May 2021 18:40:51 +0100 Subject: [PATCH] Fix a few small errata in tutorial step 8 --- tutorial/step_8.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tutorial/step_8.md b/tutorial/step_8.md index 0803205..8bd840d 100644 --- a/tutorial/step_8.md +++ b/tutorial/step_8.md @@ -71,7 +71,7 @@ Finally, make sure to edit your seed file - check out the [diff](https://github. ### The Graphiti Stuff 🎨 {% highlight bash %} -$ bin/rails g graphiti:resource Note body:text +$ bin/rails g graphiti:resource Note body:string {% endhighlight %} Let's create our `NoteResource`: @@ -96,11 +96,11 @@ end And corresponding associations: {% highlight ruby %} -# app/models/employee.rb +# app/resources/employee_resource.rb polymorphic_has_many :notes, as: :notable -# app/models/team.rb +# app/resources/team_resource.rb polymorphic_has_many :notes, as: :notable -# app/models/department.rb +# app/resources/department_resource.rb polymorphic_has_many :notes, as: :notable {% endhighlight %}