Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # or, we can specify eager caching in the action itself
- def index(page = 1)
- unless page == 1
- eager_cache :index do |controller|
- controller.params[:page] = page + 1
- end
- end
- display Acticle.paginate(:page => page)
- end
Add Comment
Please, Sign In to add comment