title: How to add a variable to an existing model ruby on rails
body: <p>Very green question here.  I built a simple blog following the instructions here <a href="http://guides.rubyonrails.org/getting_started.html" rel="nofollow">http://guides.rubyonrails.org/getting_started.html</a></p>
  
  <p>How can I add another string variable to the post object? </p>
  
  <hr>
  
  <p>Once I have a new variable, how do I create new posts in html.erb files?  The code below gives me a NoMethodError exception for the 'email' method.  How do I make this code run without an error?</p>
  
  <p>btw - what is convention on stackoverflow for followup questions?</p>
  
  <pre><code>&lt;h2&gt;Add a post:&lt;/h2&gt;
  &lt;%= form_for([@post, @post.actions.build]) do |f| %&gt;
    &lt;div class="field"&gt;
      &lt;%= f.label :number_performed %&gt;&lt;br /&gt;
      &lt;%= f.text_field :number %&gt;
    &lt;/div&gt;
    &lt;div class="field"&gt;
      &lt;%= f.label :your_email %&gt;&lt;br /&gt;
      &lt;%= f.text_field :email %&gt;
    &lt;/div&gt;
    &lt;div class="actions"&gt;
      &lt;%= f.submit %&gt;
    &lt;/div&gt;
  &lt;% end %&gt;
  </code></pre>