File upload

Hi

I have trouble uploading files with RoR. I followed the examples into
wiki and I always end up with a stringify_keys! error. I just want to
upload a simple file, however it does not work with the example
presented in the wiki. Can anyone help?

Here is my view.

New video

<%= start_form_tag({:action => ‘upload’}, {:multipart => true}) %>

<%= file_field_tag “video” %>
<%= text_field “video”, “description” %>

<%= submit_tag ‘Create’ %>

<%= end_form_tag %>

<%= link_to ‘Back’, :action => ‘list’ %>

And here is the controller.

def upload
@video = Video.new(params[:video])
file = File.new(“testfile.test”, “wr”)
file = file.read
file.close

end