sort_by DESC


The find method includes an :order_by parameter. Just try:

@type_2 = Type2.find(:all, :conditions => {:user_id =>
@user_id}, :order_by => "created_at ASC")

Actually, it looks like you want to order the whole collection.

Well, you already have the whole list in the last line, so just tack
on a ".reverse" and you are all set. I.e.

@types = (@type_1 + @type_2 + @type_3 +



I think you'll find it's :order, not :order_by. :order_by has been
deprecated for quite a while now.


Learn Ruby on Rails! Check out the FREE VIDS (for a limited time)
VIDEO #3 out NOW!