# form\_for helper?

**URL:** <https://discuss.rubyonrails.org/t/form-for-helper/48938>\
**Category:** rubyonrails-talk\
**Created:** [January 28, 2010, 7:54pm UTC](https://discuss.rubyonrails.org/t/form-for-helper/48938 "2010-01-28T19:54:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_Habgood](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@Chris\_Habgood](https://discuss.rubyonrails.org/u/Chris_Habgood)\
**Post date:** [January 28, 2010, 7:54pm UTC](https://discuss.rubyonrails.org/t/form-for-helper/48938/1 "2010-01-28T19:54:03Z")

</div>

How would make this a helper? I would like to send in some parameters as a hidden field dynamically.

\<% form\_for :file, :url =\> file\_upload\_path(:format =\> 'js'), :html =\> { :multipart =\> true, :target =\> 'upload\_file', :id =\> 'fileupload' } do %\> &nbsp;&nbsp;\<b\>File:\</b\>&nbsp; &nbsp;&nbsp;\<%= file\_field\_tag :upload %\>&nbsp; &nbsp;&nbsp;\<%= hidden\_field\_tag 'w\_id', @work.id %\> &nbsp;&nbsp;\<%= submit\_tag 'Upload File' %\>&nbsp; \<% end %\>
