javascript_tag (ActionView::Helpers::JavaScriptHelper)

    # File lib/action_view/helpers/javascript_helper.rb, line 168
          def javascript_tag(content_or_options_with_block = nil, html_options = {}, &block)
            content =
              if block_given?
                html_options = content_or_options_with_block if content_or_options_with_block.is_a?(Hash)
                capture(&block)
              else
                content_or_options_with_block
              end

            tag = content_tag(:script, javascript_cdata_section(content), html_options.merge(:type => Mime::JS))

            if block_called_from_erb?(block)
              concat(tag)
            else
              tag
            end
          end