Questions tagged [merit-gem]

Merit is a ruby gem for handling reputation (badges, points and rankings) in Rails applications.

61 questions
4
votes
1 answer

Merit rails 4 not working for update action

Just got the Merit gem up and running with my rails 4 app. So far, a user receives the first badge upon creating a subarticle. The second badge I am trying to award is when that subarticle actually gets approved, which can only be done by an admin.…
Kathan
  • 1,428
  • 2
  • 15
  • 31
4
votes
2 answers

Rails 4: Creating point rules using merit gem

I am in the process of converting my app's voting and reputation system from activerecord-reputation-system to merit because the latter seems to have a much more active core team. I'm attempting to establish point rules for voting on questions and…
dmanaster
  • 579
  • 1
  • 6
  • 16
4
votes
2 answers

Reputation System for Rails

I'm on Rails 4, and searching a Reputation System Gem similar to Stack Overflow's System. The Popular's seems to be Merit and Twitter's Active Reputation System. But i don't know which to choose, it seems that Twitter's Active Reputation System has…
Mini John
  • 7,855
  • 9
  • 59
  • 108
4
votes
1 answer

Can the merit gem recalculate reputation and re-evaluate badges and ranks?

I would like to add a system of points, ranks and badges in my rails app. The merit gem looks cool, but I want to make sure how it works before using it. The way you define badges # app/models/merit/badge_rules.rb grant_on 'comments#vote', :badge =>…
Benjamin Crouzier
  • 40,265
  • 44
  • 171
  • 236
3
votes
1 answer

Merit doesn't add points to user after create action

I've used this instructions for simply add score when a user creates a "solucion" (which is a kind of "answer" to a micropost). I have added the has_merit line to user.rb (user model). I want to display the user points earned for that action at the…
roadev
  • 1,002
  • 9
  • 16
3
votes
1 answer

Rails Ruby merit gem observer is not working

I am using merit gem in my rails project and the merit observer is not working at all. I have reputation_change_observer.rb in my app/observers/ folder #reputation_change_observer.rb class ReputationChangeObserver observe :user def…
Abhi
  • 3,361
  • 2
  • 33
  • 38
3
votes
1 answer

Merit + Rails 4 and protected attributes

Afternoon All, I have just loaded merit gem, I've set up all my badges but on the action I see the following: WARNING: Can't mass-assign protected attributes for Merit::Action: user_id, action_method, action_value, had_errors,…
Shaun Frost Duke Jackson
  • 1,256
  • 1
  • 10
  • 22
2
votes
2 answers

Devise Ahoy track link visits

Hello I have a rails app that is a closed community using devise, ahoy and merit. We have a scaffold called resources. Each resource has a link User model class User < ApplicationRecord has_merit has_many :visits, class_name:…
Joe Bloggos
  • 889
  • 7
  • 24
2
votes
1 answer

Observable badge events using merit gem

I have an issue with the merit gem that seems too obvious/easy, but struggled to figure it out. I am using the sample observable class and it works fine for points. Every point change, the registered observer receives the update. However, for…
Scott C.
  • 3,672
  • 4
  • 18
  • 20
2
votes
1 answer

Delaying Badge Assignment Using delayed_job and tute/merit

I am using the merit gem to assign badges to users. In my badge_rules.rb file I have: module Merit class BadgeRules include Merit::BadgeRulesMethods include UserHelper def initiate grant_on 'users#update_badges',…
Sabar
  • 478
  • 2
  • 20
2
votes
1 answer

Rails Merit Gem, How to display timeline of reputation changes

I'm using the merit gem for rails, and would like to have a timeline of reputation changes, badges earned etc. For example +1 22Feb PostTitle voted up +3 22Feb PostTitle favorited -1 22Feb PostTitle voted down ....and so on. Based on the…
Ryan.lay
  • 1,741
  • 2
  • 17
  • 30
2
votes
1 answer

rails merit gem does nothing?

I'm using the merit gem for badges/points, and it does nothing in the app. In the console it works, but in the app it doesn't. in merit.rb: # Use this hook to configure merit parameters Merit.setup do |config| # Check rules on each request or in…
figdig
  • 307
  • 2
  • 13
1
vote
1 answer

Merit not adding points to user action

I have installed Merit and have set up some points_rules. I'm successfully adding points to my 'user' when they create a comment but none of the others. I am using Devise. point_rules module Merit class PointRules include…
Simon Cooper
  • 1,574
  • 4
  • 24
  • 53
1
vote
1 answer

Merit gem with Rails 4.2 points are not displayed after having defined rules and added them (Without Devise)

I have defined actions and rules to reward users thanks to merit gem. However, It does not work. After having execute the rewarded actions , the user does not take any points. Here is my code: first , here is my view:
Charbell
  • 25
  • 10
1
vote
1 answer

Notifications - flash message, how to

Looking for a way to notify the user, via a flash message, that they've obtained a new badge. I have my observer setup per the instructions here: https://github.com/merit-gem/merit#getting-notifications My observer code is: class…
1
2 3 4 5