Hello,
I have a controller called user with an index action wich list all users. I can specify the order in the url like this /index/ordering/name/ increasing. I have a lot of user so i use a params[:page] to list them like this / index/2. All work find. Next i want to cache my index action so in my user controller i put :
Code : - fold - unfold
1. caches_action :index
Troubles arrive. When i go to /index a user.cache file is created. When i go to /index/2 a new cache file is created. But when i go to /index/ordering/name/increasing ,none file is created , the server give me the user.cache file created before , and my users are not ordered.
Thanks.