> the last i last i entered is displayed first
> ..but i want to display it in descending order,,,that mean the newly entered
> record should display at the top of the page

Isn't that the same? Last/newly entered display first?

anyway, in the examples replace DESC by ASC to revert order

if your model has a created_at column:
@blogs = Blog.find(:all, :order => "created_at DESC")

if you don't have the created_at col (you should), sort by id:
@blogs = Blog.find(:all, :order => "id DESC")

--~--~---------~--~----~------------~-------~--~----~
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