ruby on rails 5 - Traversing a Rich Association -


i'm following kevin skoglund's rails 3 tutorial while using rails 5. first language learn i'm still @ stage of blindly following tutorial. after learning "many many associations: rich" moved onto "traversing rich association". having trouble.

i tracked several videos , can't find made mistake.

kevin says following code "skip past join table see sections we've edited":

me.sections 

then states, "we can other side too". , enters:

section = section.find(1) 

here run problems. following:

activerecord: :recordnotfound: couldn't find section 'id'=1

if understanding correctly, section 'id' = 1 exists because viewed

me.sections 

i included screenshot of kevin , command prompt comparison.

thanks help, know simple haven't found helped googling.

david boyette

my command prompt error

kevin's command prompt

me.sections empty. please check me associating section.
btw, next time please copy/paste output instead of taking screenshot because easier handle people answers


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -