Final version of Blog task implemented in rails