blog like page from Beginning Rails 3 book