attempting ajax file upload

I have this basic code in place and it is giving me an:
"undefined local variable or method `end_form_tag' for
#<ActionView::Base:0x41a2094>"

Note sure why I am getting the error as it is straight from:
http://railsblaster.wordpress.com/2007/09/20/ajax-forms-and-file-uploading-in-rails/

view:

<%= form_remote_tag(:url => { :controller => "image_demo", :action =>
"create" }, :html => {:multipart => true}) %>
        <b>Picture:</b>&nbsp;
        <%= file_field_tag "asset" %>&nbsp;
        <%= submit_tag "Upload" %>&nbsp;
    <%= end_form_tag %>

remote_uploads.rb in lib directory:

module ActionView
  module Helpers
    module PrototypeHelper
      #alias_method :form_remote_tag_old, :form_remote_tag
      def form_remote_tag(options = {}, &block)
        unless options[:html] && options[:html][:multipart]
           form_remote_tag_old(options, &block)
        else
          uid = "a#{Time.now.to_f.hash}"
          <<-STR
          enctype="multipart/form-data" target="#{uid}" #{%(onsubmit="#
{options[:loading]}") if options[:loading]}
          >
          STR

        end
      end
    end
  end
end

I have this basic code in place and it is giving me an:
"undefined local variable or method `end_form_tag' for
#<ActionView::Base:0x41a2094>"

Because end_form_tag was removed from rails 2.0

Fred

Ok, I changed to this but it is posting normally and not ajax for some reason. i see in the source that it is supposed to do an ajax submit.

<% form_remote_tag(:url => { :controller => “image_demo”, :action => “create” }, :html => {:multipart => true}) do %>

			<b>Picture:</b>&nbsp;

			<%= file_field_tag "asset" %>&nbsp;

			<%= submit_tag "Upload" %>&nbsp;

	<% end %>

Stumped, the ajax submit works but does not pass the file param for
some reason.

<iframe name="upload_file" id="upload_file" style="width:1px;height:
1px;border:0px"></iframe>
    <% fields_for :file, :html => { :multipart =>
true, :target=>"upload_file" } do %>
      <b>Picture:</b>&nbsp;
      <%= file_field_tag :upload %>&nbsp;
      <%= submit_to_remote 'up',"Upload", :method=>'post', :url =>
{ :controller => "rfi", :action => "sendfile", :id =>
@rfi }, :target=>"upload_file" %>&nbsp;
    <% end %>