Hi im trying to list random records on first page and from 2nd page to
onwards, i need to show records by created_at using will_paginate plugin
but i can only apply one of these condition at a time.

Im showing based on order clause e,g

Order('RAND()') or Order('created_at Desc')

And then applying pagination on it. I don't know how to apply both of
them with Random on ist page and created at on the rest of the
pagination. Anybody have any idea?

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