Rails - Ruby gem merit score not adding if Model cannot be guessed from the controller

120 Views Asked by At

I am working with merit gem and I have a pages controller and an action 'fan'. I need the merit gem to add 10 score when user be a fan of a page. Modal is 'Fan'. Fan has a user.

score 10, :on => 'pages#fans', model_name: 'Fan', :to => :user

But this is not working. Any idea?

0

There are 0 best solutions below