In Rails (well, ActiveRecord) you can support simple ordered collections fairly easily. Say I had a
Post object, with multiple
Comment objects, but I want to keep the
Comment objects in order they were posted, where
posted_on holds the posted date:
class Post "posted_on"
This has been a post on behalf of the just-letting-you-know-I’m-alive and the I’m-blogging-this-so-I-can-find-it-with-google-later parties.
One Response to “Ordered collections in Ruby On Rails”
I don’t give a toss if you are alive!