# File lib/action_view/helpers/javascript_helper.rb, line 158 def form_remote_tag(options = {}) options[:form] = true options[:html] ||= {} options[:html][:onsubmit] = "#{remote_function(options)}; return false;" options[:html][:action] = options[:html][:action] || url_for(options[:url]) options[:html][:method] = options[:html][:method] || "post" tag("form", options[:html], true) end