diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-11-30 22:01:58 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-11-30 22:01:58 +0000 |
commit | 033a5148eb03a6b4a3441cdf0c4cbda357c6d702 (patch) | |
tree | f984b8a994b6426c266a7670bbe17dc9221ff287 /actionpack/lib | |
parent | 8dca6586ded76d5950b4fccfb720e2861efede6d (diff) | |
download | rails-033a5148eb03a6b4a3441cdf0c4cbda357c6d702.tar.gz rails-033a5148eb03a6b4a3441cdf0c4cbda357c6d702.tar.bz2 rails-033a5148eb03a6b4a3441cdf0c4cbda357c6d702.zip |
Premature commit
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5653 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_view/helpers/form_helper.rb | 9 | ||||
-rw-r--r-- | actionpack/lib/action_view/helpers/form_tag_helper.rb | 5 |
2 files changed, 0 insertions, 14 deletions
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb index 8d89f74c3b..8aa0b42fe1 100644 --- a/actionpack/lib/action_view/helpers/form_helper.rb +++ b/actionpack/lib/action_view/helpers/form_helper.rb @@ -223,11 +223,6 @@ module ActionView def radio_button(object_name, method, tag_value, options = {}) InstanceTag.new(object_name, method, self, nil, options.delete(:object)).to_radio_button_tag(tag_value, options) end - - - def label(object_name, method, options = {}) - InstanceTag.new(object_name, method, self, nil, options.delete(:object)).to_label_tag(options) - end end class InstanceTag #:nodoc: @@ -333,10 +328,6 @@ module ActionView tag_text << ">True</option></select>" end - def to_label_tag(options = {}) - label_tag(options.delete(:text) || value(object).humanize, options.reverse_merge(:for => tag_id)) - end - def to_content_tag(tag_name, options = {}) content_tag(tag_name, value(object), options) end diff --git a/actionpack/lib/action_view/helpers/form_tag_helper.rb b/actionpack/lib/action_view/helpers/form_tag_helper.rb index 661034e5ca..e2e796e7c8 100644 --- a/actionpack/lib/action_view/helpers/form_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/form_tag_helper.rb @@ -153,11 +153,6 @@ module ActionView tag :input, html_options end - # Creates a label tag. - def label_tag(text, options = {}) - content_tag :label, text, options - end - # Creates a submit button with the text <tt>value</tt> as the caption. If options contains a pair with the key of "disable_with", # then the value will be used to rename a disabled version of the submit button. def submit_tag(value = "Save changes", options = {}) |