vendredi 8 avril 2016

Reputation-system get upvoted items

I'm trying to iterate over a post model and show to the user just the upvoted posted. the way that seems on docs is this:

@posts = Post.where(current_user.id).find_with_reputation(:votes, value: 1.0).paginate(page: params[:page], per_page: 22)

but rails is spitting out Unknown key: value. someone have any tip for this? thank's

Aucun commentaire:

Enregistrer un commentaire