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> <%= file_field_tag "asset" %> <%= submit_tag "Upload" %> <%= 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

