I have a scope that looks like this:
scope :top, order('score DESC')
In my controller, it is used as follows:
def top @users = User.top render "list" end
Now it seems that this area is cached for no reason. If I load the top page, add the user and reload it, the user will not appear in the list.
If I do this:
def top @users = User.order('score DESC') render "list" end
Results are not cached. What's going on here? I am using Ruby 2.0.0 and Rails 4.0.0
source share