I'm not sure how to use custom event tracking in ahoy. I followed the documentation and added a
ahoy.track "Viewed book", title: "Hot, Flat, and Crowded"
in one of my models, but I get
undefined local variable or method `ahoy'
Are controllers the only place where I can track ahoy events?