Basic File Question

I'm a data person and some of the basics on the front end seem to
escape me. I am merely trying to upload a file to the backend.
Everything works except that what is uploaded is not the file but the
reference to the file, i.e. #<File:0x57d79b8>

It's got to be a simple thing I am missing...

This is the form

<% form_for(@workstmt,:url=>{:action=>'create'},
:html => {:multipart=>true}) do |f| %>
    <b>Project name</b><br />
    <%= f.text_field :project_name %>

    <b>File name</b><br />
    <%= f.text_field :file_name %>

    <b>Sow</b><br />
    <%= f.text_field :sow_id %>

    <b>Workstmt</b><br />
    <%= f.file_field :workstmt %>

    <%= f.submit "Create" %>
<% end %>

and the controller snippet is the default from the scaffold

def create
    @workstmt =[:workstmt])
    respond_to do |format|
        flash[:notice] = 'Workstmt was successfully created.'
        format.html { redirect_to(@workstmt) }
        format.xml { render :xml => @workstmt, :status
=> :created, :location => @workstmt }
        format.html { render :action => "new" }
        format.xml { render :xml => @workstmt.errors, :status
=> :unprocessable_entity }

This is the controller code that will work (with workstmt_file) being
the name of the file_field comng from the form

   @workstmt =
   @workstmt.file_name = params[:workstmt]
       @workstmt.content_type = params[:workstmt]
   @workstmt.workstmt = params[:workstmt][:workstmt_file].read