You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was having trouble in I3 tagging. I got to the point where I'm supposed to try 'tag.articles' and I got a stack trace. The pertinent part is probably here:
NoMethodError: undefined method `articles' for #tagging::activerecord_associations_collectionproxy:0xb0d99a8
It was really strange because article.tags works just fine but tag.articles does not. I followed all the directions and I didn't see anything out of place in the models for the tag and the articles and the taggings.
The issue was that I hadn't restarted the rails server. And none of the debugging I tried to do showed any issues at all. A reload! won't fix it.
Once I restarted the server the associations worked fine and I could view the articles associated with a tag.
The text was updated successfully, but these errors were encountered:
I was having trouble in I3 tagging. I got to the point where I'm supposed to try 'tag.articles' and I got a stack trace. The pertinent part is probably here:
NoMethodError: undefined method `articles' for #tagging::activerecord_associations_collectionproxy:0xb0d99a8
It was really strange because article.tags works just fine but tag.articles does not. I followed all the directions and I didn't see anything out of place in the models for the tag and the articles and the taggings.
The issue was that I hadn't restarted the rails server. And none of the debugging I tried to do showed any issues at all. A reload! won't fix it.
Once I restarted the server the associations worked fine and I could view the articles associated with a tag.
The text was updated successfully, but these errors were encountered: