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 %} pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy