I have followed http://guides.rubyonrails.org/getting_started.html and, in that example we can add a new post and it is displayed but the new post is displayed at the bottom when there is a post present already but i wanted to make the new post displayed at the top. How can i do it?
I have followed http://guides.rubyonrails.org/getting_started.html and, in that example we can add a new post
Share
Post.order(“created_at desc”) will show the most recently created first.