Using Active Record Reputation System gem, no sorting happens when I sort by votes
问题 Following the RailsCast for the reputation system gem, I added the following code to my microposts_controller def index @microposts = Micropost.paginate(page: params[:page]).find_with_reputation(:votes, :all, order: "votes desc") @micropost = current_user.microposts.build end But no sorting happens in my index action aside from the default scope I set in my model In my micropost model I have class Micropost < ActiveRecord::Base belongs_to :user has_many :retweets has_reputation :votes, source