The template of rails blog code