# Form\_for helper?

**URL:** <https://www.ruby-forum.com/t/form-for-helper/182485>\
**Category:** Rails\
**Created:** [January 28, 2010, 8:55pm UTC](https://www.ruby-forum.com/t/form-for-helper/182485 "2010-01-28T20:55:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigdaddy71](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bbe5ce/32.png) [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Post date:** [January 28, 2010, 8:55pm UTC](https://www.ruby-forum.com/t/form-for-helper/182485/1 "2010-01-28T20:55:07Z")

</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 %\>  
**File:** &nbsp;  
\<%= file\_field\_tag :upload %\>&nbsp;  
\<%= hidden\_field\_tag ‘w\_id’, @work.id %\>  
\<%= submit\_tag ‘Upload File’ %\>&nbsp;  
\<% end %\>
