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@example.com.
To unsubscribe from this group, send email to firstname.lastname@example.org.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.