method

content_tag

rails latest stable - Class: ActionView::Helpers::InstanceTag

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

content_tag(name, value, options)
public

No documentation available.

# File actionpack/lib/action_view/helpers/active_record_helper.rb, line 257
      def content_tag(name, value, options)
        if object.respond_to?(:errors) && object.errors.respond_to?(:on)
          error_wrapping(content_tag_without_error_wrapping(name, value, options), object.errors.on(@method_name))
        else
          content_tag_without_error_wrapping(name, value, options)
        end
      end