title: Hidden field in rails form
body: <p>I have this form in a view in my project. I need to pass the <code>task_id</code> to a certain controller, but the log does not seem to be receiving the parameters. I don't know what the problem is.</p>
  
  <pre><code>&lt;%= form_for :taskid, :url =&gt; {:action=&gt;"index", :controller=&gt;"statistics"}, :html =&gt; {:class =&gt; "nifty_form", :method =&gt; "GET"} do |f| %&gt;
    &lt;%f.hidden_field :task_id, :value =&gt; task.id%&gt;
    &lt;td&gt;&lt;%= f.submit "اختر مهمة لاظهار احصائياتها منفرده"%&gt;&lt;/td&gt;
  &lt;% end %&gt;
  </code></pre>