% controller ||= params[:controller] pagination_url_params = params.merge(:controller => controller, :action => :browse, :search => params[:search], :update => 1) prev_url = url_for(pagination_url_params.merge(:page => page.prev.number, :escape => false)) if page.prev? next_url = url_for(pagination_url_params.merge(:page => page.next.number, :escape => false)) if page.next? -%>