title: Passing extra params through text_field_tag in form_for
body: <p>I'm in trouble with a form I'm doing on rails 3.</p>
  
  <p>What I want to do is:</p>
  
  <p>I want to pass an extra parameter only to decide how many builds you want to do 
  to the next form. I'm trying to pass the value through a text_field_tag, but I can't get it 
  on the controller side. </p>
  
  <p>This is what I've done:</p>
  
  <p>Model:</p>
  
  <pre><code>  class Story &lt; ActiveRecord::Base
      attr_accessible :resume,
                   :title,
                   :prelude,
                   :chapter_numbers
  
      attr_accessor :chapter_numbers
      # etc etc etc
  
    end
  </code></pre>
  
  <p>View: </p>
  
  <pre><code>&lt;%= simple_form_for(@story) do |f| %&gt;
  
      &lt;div class="field"&gt;
        &lt;%= f.input :prelude, as: :text, input_html: { rows: 10, style: 'width: 100%' } %&gt;
      &lt;/div&gt;
      &lt;div class="field"&gt;
        &lt;%= text_field_tag :chapter_numbers %&gt;
      &lt;/div&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>the extra parameter is :chapter_numbers, which I want to catch in the controller as 
  params[:chapter_numbers], but it's not working. Tried to add it as virtual attribute (don't know if it's necessary)</p>
  
  <p>Thanks in advance!</p>