Normalize args by converting render “foo” to
render :action
=> “foo” and render “foo/bar”
to render :file
=> “foo/bar”. :api: plugin
# File actionpack/lib/abstract_controller/rendering.rb, line 143
def _normalize_args(action=nil, options={})
case action
when NilClass
when Hash
options = action
when String, Symbol
action = action.to_s
key = action.include?(//) ? :file : :action
options[key] = action
else
options[:partial] = action
end
options
end