Module: ActionView::Helpers::TagHelper
- Defined in:
- lib/context_help/patches/tag_helper_patch.rb
Instance Method Summary collapse
- #content_tag_with_context_help_content_tag(name, content_or_options_with_block = nil, options = {}, escape = true, &block) ⇒ Object
- #tag_with_context_help_tag(name, options = {}, open = false, escape = true) ⇒ Object
Instance Method Details
#content_tag_with_context_help_content_tag(name, content_or_options_with_block = nil, options = {}, escape = true, &block) ⇒ Object
9 10 11 12 13 |
# File 'lib/context_help/patches/tag_helper_patch.rb', line 9 def content_tag_with_context_help_content_tag(name, = nil, = {}, escape = true, &block) = ContextHelp::Helpers.({:context_help => {:path => {:tag => name.to_sym, :tag_options => .dup}}}, ) help = ContextHelp::Base.help_for() content_tag_without_context_help_content_tag(name, , ContextHelp::Helpers.clean(), escape, &block) + help end |
#tag_with_context_help_tag(name, options = {}, open = false, escape = true) ⇒ Object
4 5 6 7 8 |
# File 'lib/context_help/patches/tag_helper_patch.rb', line 4 def tag_with_context_help_tag(name, = {}, open = false, escape = true) = ContextHelp::Helpers.({:context_help => {:path => {:tag => name.to_sym, :tag_options => .dup}}}, ) help = ContextHelp::Base.help_for() tag_without_context_help_tag(name, ContextHelp::Helpers.clean(), open, escape) + help end |