title: Rails: How do I use hidden_field in a form_for?
body: <p>I've read <a href="http://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html#M002295" rel="noreferrer">this</a>, but I'm new to RoR so I'm having a little trouble understanding it. I'm using a form to create a new request record, and all of the variables that I need to send exist already. Here is the data I need to send (this is in a do loop):</p>
  
  <pre><code>:user_id =&gt; w[:requesteeID]
  :requesteeName =&gt; current_user.name
  :requesteeEmail =&gt; current_user.email
  :info =&gt; e
  </code></pre>
  
  <p>Here's my form, which works so far, but only send NULL values for everything:</p>
  
  <pre><code>&lt;% form_for(:request, :url =&gt; requests_path) do |f| %&gt;
      &lt;div class="actions"&gt;
          &lt;%= f.submit e %&gt;
      &lt;/div&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>How do I use hidden_fields to send the data I already have? Thanks for reading.</p>