search for: creado_en

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

2006 Nov 08
0
Paginating a fetched resultset problems with next/previous
...] first = pages.current.offset last = [first + options[:per_page], collection.size].min slice = collection[first...last] return [pages, slice] end #Controller--------------------- @paginas, @entradas = paginate_collection Entrada.find(:all, :conditions => [''month(creado_en) = ?'', params[:mes]], :order => ''id desc''), :page => @params[:page] #View--------------------------- <%= link_to ''Previous page'', { :page => @paginas.current.previous } if @paginas.current.previous %> <%= link_to ''Next p...