On 30 June 2014 15:11, Fresh Mix <lists@ruby-forum.com> wrote:
> Colin Law wrote in post #1151137:
>
> Ok. But is it possible to sort Pages by visits.count? I can't find it
> tutorial...
>
> An sorting by likes is even more difficult?
You can sort by anything you like, in plain ruby if you can't see how
to use order when fetching it from the database.
Colin
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLv7fXPR0inQcV%2B3bRqgfSBXV42%2BiZV-ZhTiH7QB3EzJHg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment