hi,i have a table called blogs which include t.column :user_id, :integer t.column :post_id, :integer t.column:title, :string t.column:body, :string
and i have a seperate form to fill the title and post field,i can display the title and body in a page.but the records are displayed in the ascending order,that means 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,please can anyone send me the code to do this