aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-03-13 05:24:10 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-03-13 05:24:10 +0000
commit1def3f0073d94564ab46a02a6c567a6c091a4e96 (patch)
treeaef38e8578989954a3ea2e832fe52466645c414e /actionpack/lib/action_view/helpers
parente3dab67c44ed047cc91ccfcc17c5ee2bb9997be3 (diff)
downloadrails-1def3f0073d94564ab46a02a6c567a6c091a4e96.tar.gz
rails-1def3f0073d94564ab46a02a6c567a6c091a4e96.tar.bz2
rails-1def3f0073d94564ab46a02a6c567a6c091a4e96.zip
Deprecation: remove deprecated update_element_function, start_form_tag, and end_form_tag. Use RJS and form_tag instead.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6409 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view/helpers')
-rw-r--r--actionpack/lib/action_view/helpers/deprecated_helper.rb34
-rw-r--r--actionpack/lib/action_view/helpers/form_tag_helper.rb8
2 files changed, 0 insertions, 42 deletions
diff --git a/actionpack/lib/action_view/helpers/deprecated_helper.rb b/actionpack/lib/action_view/helpers/deprecated_helper.rb
deleted file mode 100644
index 04392f5b04..0000000000
--- a/actionpack/lib/action_view/helpers/deprecated_helper.rb
+++ /dev/null
@@ -1,34 +0,0 @@
-module ActionView
- module Helpers
- module PrototypeHelper
-
- def update_element_function(element_id, options = {}, &block)
- content = escape_javascript(options[:content] || '')
- content = escape_javascript(capture(&block)) if block
-
- javascript_function = case (options[:action] || :update)
- when :update
- if options[:position]
- "new Insertion.#{options[:position].to_s.camelize}('#{element_id}','#{content}')"
- else
- "$('#{element_id}').innerHTML = '#{content}'"
- end
-
- when :empty
- "$('#{element_id}').innerHTML = ''"
-
- when :remove
- "Element.remove('#{element_id}')"
-
- else
- raise ArgumentError, "Invalid action, choose one of :update, :remove, :empty"
- end
-
- javascript_function << ";\n"
- options[:binding] ? concat(javascript_function, options[:binding]) : javascript_function
- end
- deprecate :update_element_function => "use RJS instead"
-
- end
- end
-end \ No newline at end of file
diff --git a/actionpack/lib/action_view/helpers/form_tag_helper.rb b/actionpack/lib/action_view/helpers/form_tag_helper.rb
index fa610215a4..417b0fd4b7 100644
--- a/actionpack/lib/action_view/helpers/form_tag_helper.rb
+++ b/actionpack/lib/action_view/helpers/form_tag_helper.rb
@@ -39,14 +39,6 @@ module ActionView
end
end
- alias_method :start_form_tag, :form_tag
-
- # Outputs "</form>"
- def end_form_tag
- "</form>"
- end
-
- deprecate :end_form_tag, :start_form_tag => :form_tag
# Creates a dropdown selection box, or if the <tt>:multiple</tt> option is set to true, a multiple
# choice selection box.