用于跟踪用户活动的Gem [英] Gem to track User Activity

查看:125
本文介绍了用于跟踪用户活动的Gem的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在网站上追踪/记录用户活动是否有很好的宝石?就像他们登录,注销或执行一项可以改变网站内容的操作(通常是非GET请求)。 解决方案

p>是的。这里是一个纸质足迹。 https://github.com/airblade/paper_trail



它的主要prupose是版本模型,但我认为它也适合您的使用情况,因为它会记录每个版本的制造者。



更多宝石搜索ruby工具箱。以下是您应该在此情况下检查的类别:



https: //www.ruby-toolbox.com/categories/Active_Record_User_Stamping



https://www.ruby-toolbox.com/categories/Active_Record_Versioning



也许Userstamp实际上更适合您的用例。

p>

Is there a good gem to track/log user activities on the site? Like when they sign in, sign out, or perform an action that changes something on the site (non GET requests in general).

解决方案

Yes there are. Here is one, paper trail. https://github.com/airblade/paper_trail

Its main prupose is to versioning models but I think its also good for your use case since it registers who made each version.

For more gems search at ruby toolbox. Here are the categoties that you should check in this case

https://www.ruby-toolbox.com/categories/Active_Record_User_Stamping

https://www.ruby-toolbox.com/categories/Active_Record_Versioning

Maybe Userstamp is actually better for your use case.

这篇关于用于跟踪用户活动的Gem的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆