Simple blog application in rails 4