search for: max_rank

Displaying 1 result from an estimated 1 matches for "max_rank".

Did you mean: max_lans
2008 Oct 03
1
fragment caching with search box
I''m trying to setup some fragment caching which works fine for the index but i''m not sure how to ignore the caching if they are searching the index results. my code in short: ItemsController def index @items = Item.search(params[:search], params[:min_rank], params[:max_rank], params[:classification_id], ...) end index.html.erb <% cache (''items'', {:page => params[:page] || 1}) do %> <% for item in @items %> ...show output <% end %> <% end %> so my question is, what is the best way for me to ignore the caching in the i...