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
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
Post a Comment