diff options
author | lest <just.lest@gmail.com> | 2011-11-27 16:59:44 +0300 |
---|---|---|
committer | lest <just.lest@gmail.com> | 2011-11-27 16:59:44 +0300 |
commit | bc81ba2451a6a6c5507ad497cf838935e9d1ece2 (patch) | |
tree | fab94e9158920a0ae33c23b0f8072800d298189b /actionpack/lib | |
parent | 3c81fc3b91ddfd4d115a7001640588eb93249261 (diff) | |
download | rails-bc81ba2451a6a6c5507ad497cf838935e9d1ece2.tar.gz rails-bc81ba2451a6a6c5507ad497cf838935e9d1ece2.tar.bz2 rails-bc81ba2451a6a6c5507ad497cf838935e9d1ece2.zip |
fix label with block in erb
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_view/helpers/form_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb index d687866d0d..4471a2b541 100644 --- a/actionpack/lib/action_view/helpers/form_helper.rb +++ b/actionpack/lib/action_view/helpers/form_helper.rb @@ -960,7 +960,7 @@ module ActionView end class InstanceTag - include Helpers::CaptureHelper, Context, Helpers::TagHelper, Helpers::FormTagHelper + include Helpers::TagHelper, Helpers::FormTagHelper attr_reader :object, :method_name, :object_name @@ -992,7 +992,7 @@ module ActionView options["for"] ||= name_and_id["id"] if block_given? - label_tag(name_and_id["id"], options, &block) + @template_object.label_tag(name_and_id["id"], options, &block) else content = if text.blank? object_name.gsub!(/\[(.*)_attributes\]\[\d\]/, '.\1') |