Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个带有设计用户的 Rails 应用程序。我正在尝试运行游戏化 gem gioco。
在我的控制台中,我可以为用户创建事件:
User.first.track_event('Published a post')
这让我可以在用户仪表板中创建点。
那是我的打印屏幕打印屏幕
我想将我的模型发布一篇文章与我可以在控制台中创建的事件联系起来,但我不知道该怎么做。
你们有什么建议吗?谢谢!