> I think you're missing one thing here. This precise construction means
> that there is a significant chance that some items will never be seen at
> all. If the first "page" is random, it's not "random within the
> parameters of what would otherwise land on page 1", it's "random across
> the entire database". And then you move to page 2, where it's created_at
> ber alles.
>
> What I would do is have a separate route for "random tease of what's in
> the database", and then have a real "everything, in order" route as is
> normal for an index + pagination.

Thanks Walter, it would certainly miss some of the items, but what you
are saying to have separate route for random and for pagination is may
be possible but right now i do not understand how to implement this, but
i will try to do it and if u can elaborate it further with example then
it would be helpful for me.

-- 
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.

Reply via email to