I saw this (about Pagination): http://glu.ttono.us/articles/2006/08/30/guide-things-you-shouldnt-be-doing-in-rails I think I can understand why. But if one is not to use Pagination, then how would you list 20 rows at the time and how would you make the next and previous links? -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
On Sun, Sep 10, 2006 at 09:46:25PM +0200, P??l Bergstr??m wrote:> > I saw this (about Pagination): > > http://glu.ttono.us/articles/2006/08/30/guide-things-you-shouldnt-be-doing-in-rails > > I think I can understand why. But if one is not to use Pagination, then > how would you list 20 rows at the time and how would you make the next > and previous links?I believe the authors point was not that pagination was bad, but the built in pagination in rails was bad/hacky/expensive, and that you should write your own instead of using the built in one (or something along those lines). If you look at the top level of his blog you''ll find a respose to the feedback he got. http://glu.ttono.us/articles/2006/08/30/on-the-days-events To quote: "Pagination seems to be the issue we pulled apart today so let''s talk about that for a few minutes. I said some things about pagination that, after returning to them, seem a bit cryptic. Sorry about that. Let me clarify: the built in pagination helpers are a hackish pain. They''re hard to work with and have some efficiency issues. As a result, working with very large data sets can cause it problems. Don''t be afraid, just be aware. With large data sets you''ll want to roll your own. The Paginator object itself isn''t so bad (though we really should clean it up) and I prefer to use custom pagination with it over the helpers. That being said, we''ve talked about pulling out the Rails pagination helpers into a plugin for a while. I imagine they were brought up when I passed the article around was for that reason. It isn''t deprecated yet, but it probably will be." Alan -- Alan <alan-uRyko9YzQ87YtjvyW6yDsg@public.gmane.org> - http://arcterex.net -------------------------------------------------------------------- "Backups are for people who don''t pray." -- big Mike --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Give paginating_find a try: http://cardboardrocket.com/ On 10/09/06, Alan <alan-uRyko9YzQ87YtjvyW6yDsg@public.gmane.org> wrote:> > > On Sun, Sep 10, 2006 at 09:46:25PM +0200, P??l Bergstr??m wrote: > > > > I saw this (about Pagination): > > > > > http://glu.ttono.us/articles/2006/08/30/guide-things-you-shouldnt-be-doing-in-rails > > > > I think I can understand why. But if one is not to use Pagination, then > > how would you list 20 rows at the time and how would you make the next > > and previous links? > > I believe the authors point was not that pagination was bad, but the > built in pagination in rails was bad/hacky/expensive, and that you > should write your own instead of using the built in one (or something > along those lines). If you look at the top level of his blog you''ll > find a respose to the feedback he got. > > http://glu.ttono.us/articles/2006/08/30/on-the-days-events > > To quote: > > "Pagination seems to be the issue we pulled apart today so let''s talk > about that for a few minutes. I said some things about pagination that, > after returning to them, seem a bit cryptic. Sorry about that. Let me > clarify: the built in pagination helpers are a hackish pain. They''re > hard to work with and have some efficiency issues. As a result, working > with very large data sets can cause it problems. Don''t be afraid, just > be aware. With large data sets you''ll want to roll your own. The > Paginator object itself isn''t so bad (though we really should clean it > up) and I prefer to use custom pagination with it over the helpers. > > That being said, we''ve talked about pulling out the Rails pagination > helpers into a plugin for a while. I imagine they were brought up when I > passed the article around was for that reason. It isn''t deprecated yet, > but it probably will be." > > Alan > > -- > Alan <alan-uRyko9YzQ87YtjvyW6yDsg@public.gmane.org> - http://arcterex.net > -------------------------------------------------------------------- > "Backups are for people who don''t pray." -- big Mike > > > >--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Ian Leitch wrote:> Give paginating_find a try: http://cardboardrocket.com/Nice. That''s more like what pagination should be like -- make it part of find(). Joe -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---