instance method validate_render_arguments

Ruby on Rails 2.3.18

Since v2.3.18 Last seen in v2.3.18 Private

Signature

validate_render_arguments(options, extra_options, has_block)

No documentation comment.

Parameters

options req
extra_options req
has_block req
Source
# File actionpack/lib/action_controller/base.rb, line 1272
      def validate_render_arguments(options, extra_options, has_block)
        if options && (has_block && options != :update) && !options.is_a?(String) && !options.is_a?(Hash) && !options.is_a?(Symbol)
          raise RenderError, "You called render with invalid options : #{options.inspect}"
        end

        if !extra_options.is_a?(Hash)
          raise RenderError, "You called render with invalid options : #{options.inspect}, #{extra_options.inspect}"
        end
      end

Defined in actionpack/lib/action_controller/base.rb line 1272 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::Base

Type at least 2 characters to search.

↑↓ navigate · open · esc close