Hey Luke...
Thank you so much for your help....
That solution worked like a charm....
Thanks again...
Luke Pearce wrote:
> Use ruby script/console in a command prompt to try things out...
>
>>> c = Company.find(:all, :page => {:current => 1, :size => 1}, :limit => 1)
> => #<PagingEnumerator:0x5d29880 @page_count=1, @first_page=1, @size=1,
> @page=1, @page_size
> =1, @callback=#<Proc:0x06184...@c:/../lib/paginating_find.rb:82>,
> @last_page=1, @stop_page=1, @auto=false>
>
>>> c.page_count
> => 1
>
> In your view check that @your_collection.page_count > 1 before you call
> the paginating find partial that generates the pages.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---