updated blog operation,in rails project