Blogging app in ruby on rails