Closed gabrielguerin closed 4 years ago
Interestingly, if I change to: :action_user
to to: :user
, it does work even though the trace is the same. I do not know why however.
The full working code in point_rules
is therefore:
def initialize
# New user
score 10,
on: 'users/confirmations#show',
model_name: 'User',
to: :itself
# If user adds a post
score 50,
to: :user,
on: 'posts#create'
# If user downloads a file
score -50,
to: :action_user,
on: 'active_storage/blobs#show'
end
Hello,
Whenever users add their first post, they don't receive any points. However, it does work the second time and so on.
Here is my file
point_rules
:Here is the trace when I add the first post:
Here is the trace when I add the second post:
Interestingly, points do get granted to users once they have created their account and confirmed their email address. Here is the trace:
Thank you in advance!