RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Retrieving the last N ordered records with ActiveRecord using subqueries

We recently built a chat, and ran into an interesting issue regarding retrieval of chat messages, with an interesting solution. There’s a blog post about it on the Elabs blog: http://www.elabs.se/blog/72-retrieving-the-last-n-ordered-records-with-activerecord

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in