RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: katsuyan
Site: www.katsuyan.me
It looks like you are calling add_evaluation on nil value. You should make sure the variable does not have nil value.
With activerecord-reputation-system 1.3.0,
You can use evaluated_by method to do this.
e.g.
Haiku.evaluated_by(:votes, @user)
will return all Haiku instances that are evaluated by @user.
It looks like you are calling add_evaluation on nil value. You should make sure the variable does not have nil value.
With activerecord-reputation-system 1.3.0,
You can use evaluated_by method to do this.
e.g.
will return all Haiku instances that are evaluated by @user.