On 10 May 2011 00:43, Brett Turner <[email protected]> wrote:
> How would I go about showing the most recent database entry first then
> to the next most recent.... currently it is shown in chronological
> order

When you do the find that gets the records (in the controller index
action normally) just add an order clause to the search.  See the
Rails Guide, Active Record Query Interface, on how to do it.  If you
want *always* to sort this model in that order then do it in a
default_scope method in the model.

Colin

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to