Gem to track user activity in ruby on rails? - ruby-on-rails

I am looking for a gem which should able track all user activities in detail without any manual work. It should work just by adding Include/require in models/controllers etc. Which should support rails 2.3.4 and ruby 1.9.3. Ex. like John created document with name XYZ 2 minutes ego. etc

Look for either paper_trail or public_activity

I suggest you to have a look at getstream.io and the stream_rails gem; getstream allows you to build full featured news feeds and activity feeds in almost no time.
Disclaimer: I am one of the founders of getstream.io and the author of the ruby gem.

Related

Rails - Mention the gem/plugin to implement inbox feature

In rails 3 (or above), I want to implement a messaging system, which gem or plugin I can use for it? Please help me to implement a inbox feature with all actions in my rails project.
https://github.com/jongilbraith/simple-private-messages is this gem will suits for all inbox actions in rails 4.1 ?
Here I would suggest you mailboxer gem,
https://github.com/mailboxer/mailboxer
By this, you can get messaging system and inbox features like real time mailing system.

Periodically edit a Rails database from a gem

I have been working with and learning Rails for a few months and have recently taken up a project that calls for a gem that will periodically pull data from another site and compile it into a database friendly format.
I have the ruby code to do the pulling, editing, and formatting. My question is how to get the gem to edit the database for the Rails app that will be built by inserting the data. What I want is to have a few models based off the data being mined by the gem.
Some background info on the app. The app will be a stats reporting app for sports. So the models that are based on the data mined will be Stats, Players, Teams, and Games. There will be other models in the application as well, such as Devise users and others.
Once again, I have made the ruby code that will pull the data using 'json' and 'nokogiri' gems and will put them into (a lot of) hashes. I just have no idea how to store them in a database usable by a Rails app. Or any database for that matter. The only information I could turn up had to do with Engines and Railtie but there were no thorough explanations.
Thanks for the help.

ruby on rails(amistad gem)

I want to maintain a friendship within my application for the users to send request and with accept/reject functionalities. I'm using rails 3.2.5 and ruby 1.9.3. I tried the same with amistad gem but unluckily it didn't work. the "include Amistad::FriendshipModel" in amistad is not including in my User model. I cannot find what is the reason for that. can you suggest me some other gem for this functionality in ruby on rails?
An alternative to Amistad is Amico - Relationships (e.g. friendships) backed by Redis.
In general a few more gems might also fit your needs: ActiveRecord Reputation System by Twitter or the Community Engine gem.

Is there a Rails Gem for Page Stats?

I'm allowing users to create sites within my application, and I want to provide simple stats to them like the number of page views. Is there a Rails gem that I can implement to do this?
Check this similar question simple hit counter for page views in rails. Based on the answer to the mentioned question, a gem named impressionist was created by John McAliley. The gem is Rails 3 ready, so you can include it in your app directly.
Try out the StatsMix gem. You can use it to track any action or event in your application. Disclaimer: I'm the founder and it's a subscription based (paid) service. We do have a free developer plan though and have the abilty to embed charts and dashboards to easily allow for providing stats to your users.

What gem do you advise me to use to implement a simple "Contact us" form?

I am using Ruby on Rails 3.0.9 and I am planning to add a simple "Contact us" form to my application in order to make it possible that a user can contact our team. For that I would like to run validation and "friends" functionalities and (to avoid to implement that myself and) to use a third party software, but...
... what gem (or plugin) do you advice to use? what is the most widely "approved" gem for this kind of things?
Of course I would like to use a gem in "active developing" (that is, whose developers are active).
Generally I would go with a rails engine to add this functionality and the contact_us plugin an excellent example, it's also under active development (last commit 5 days ago) so you can be sure it's not abandon-ware.
I think it's not to complicated to do it on your own (pretty fast)? I hardly think it needs a separate gem to do this (especially if for example contact_us requires additional dependencies (formtastic)).
As for me, it's just a simple form, with action directed to your own Rails mailer.
See: ActionMailer in Rails 3, Form helpers in Rails 3
You can use Contact Us gem via this link: https://github.com/JDutil/contact_us The documentation is clear and you can use it simply.
As I know by using it, it doesn't need any additional dependency like "formtastic".
Features:
Validation
Easy/Add remove fields
Simple configuration

Resources