my form

<%= form_tag :action => 'upload', :id => @property.id %>
   <%= file_field 'images', 'name' %>
   <%= submit_tag "send" %>
<%= end_form_tag %>

@user = "new_image"
File.open("#{RAILS_ROOT}/public/images/#{@user}.jpg", "wb") do |f|
      f.write(@params['name'])
end

and ? and nothing o got new_image.jpg file but is empty


I wa trying like
f.write(File.open(@params['image_file']).read)
than A got error

Can't convert Array into String

so what I am doing wrong ?