title: how to add data to database from rails console
body: <p>I have a <code>User</code> model. </p>
  
  <pre><code>&gt;&gt; @u = User.new
  =&gt; #&lt;User id: nil, userid: nil, password: nil, created_at: nil, updated_at: nil, user_first_name: nil, user_last_name: nil, user_status: nil, user_type: nil&gt;
  </code></pre>
  
  <p>I am not able to add data to the <code>Users</code> table from the console. I am doing the following:</p>
  
  <pre><code>&gt;&gt; @u.userid="test1"
  =&gt; "test1"
  &gt;&gt; @u.password="test2"
  =&gt; "test2"
  &gt;&gt; @u.user_first_name="test3"
  =&gt; "test3"
  &gt;&gt; @u.user_last_name="test4"
  =&gt; "test4"
  &gt;&gt; @u.user_status="test5"
  =&gt; "test5"
  &gt;&gt; @u.user_type="test6"
  =&gt; "test6"
  &gt;&gt; @u.save
  NoMethodError: undefined method `userid' for nil:NilClass
  </code></pre>
  
  <p>what am i doing wrong? I just simply want to add one row of data to the app. </p>