Events with ruby on rails

112 Views Asked by At

I have a rails application with devise users. I'm trying to run the gamification gem gioco.

In my console I can create events for the users with:

User.first.track_event('Published a post') 

and this let me create points in the user dashboard.

that's my print screen Print screen

I want to connect my model publish a post, with the events that I can create in the console, but i don't know how to do this.

Any of you have suggestions for doing that? Thanks!

0

There are 0 best solutions below