Displaying 1 result from an estimated 1 matches for "product_data".
2006 Mar 21
2
Rails newbie can''t initialize a new Paginator object
Hi all,
I''m using ruby 1.8.2-15 and a recent rails 1.0 download.
I''m trying to implement the Classic/Custom pagination in a list action.
Here''s my code:
def list
getSearchTerms
# NOTE: @params[:search_results] is an Array of product_data objects
# returned by a search action.
@results = @params[:search_results]
if @results.nil? then
# The default list of all product_data
@product_datum_pages, @product_data = paginate :product_data,
:per_page => 10
else
page = (@params[:page] ||= 1).to_i
off...