I have installed the RailsTutorial sample app(the twitter like application) and am trying to understand why the following piece of console code does not update the database
Your validations are not passing. You can do:
user.errors.full_messages
in the console after the failed save to see why.