Newest Blog Post for Each User

For the front page of LandBrokr we want the newest blog posts. However, we don’t want one user to game the system and fill the front page with just them. Also, we want a link to prior blog posts, still sorted and unique to the user. In short, I want a list of each user’s […]

Retrieving Random Elements from an ActiveRecord

This one is short but not something I immediately thought of. It doesn’t rely on an ActiveRecord abstraction, but I originally thought it would need to, so the title is to save future Web searchers. The idea is that you want to create a list of all the Users, but ordered randomly. It turns out […]