module AbstractController::Rendering

def _normalize_args(action=nil, options={})

render "foo/bar" to render :file => "foo/bar".
Normalize options by converting render "foo" to render :action => "foo" and
def _normalize_args(action=nil, options={})
  case action
  when NilClass
  when Hash
    options, action = action, nil
  when String, Symbol
    action = action.to_s
    key = action.include?(?/) ? :file : :action
    options[key] = action
  else
    options.merge!(:partial => action)
  end
  options
end