From 8071ba77333fb476027888c7dc19e822a746e3b2 Mon Sep 17 00:00:00 2001 From: fatkodima Date: Mon, 25 May 2020 20:19:59 +0300 Subject: [PATCH] A few action_controller docs corrections --- actionpack/lib/action_controller/metal/implicit_render.rb | 2 +- actionpack/lib/action_controller/metal/strong_parameters.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/actionpack/lib/action_controller/metal/implicit_render.rb b/actionpack/lib/action_controller/metal/implicit_render.rb index 8365ddca57..b2485db5f8 100644 --- a/actionpack/lib/action_controller/metal/implicit_render.rb +++ b/actionpack/lib/action_controller/metal/implicit_render.rb @@ -22,7 +22,7 @@ module ActionController # Third, if we DON'T find a template AND the request is a page load in a web # browser (technically, a non-XHR GET request for an HTML response) where # you reasonably expect to have rendered a template, then we raise - # ActionView::UnknownFormat with an explanation. + # ActionController::MissingExactTemplate with an explanation. # # Finally, if we DON'T find a template AND the request isn't a browser page # load, then we implicitly respond with 204 No Content. diff --git a/actionpack/lib/action_controller/metal/strong_parameters.rb b/actionpack/lib/action_controller/metal/strong_parameters.rb index ea931cec51..0aa1b4ab46 100644 --- a/actionpack/lib/action_controller/metal/strong_parameters.rb +++ b/actionpack/lib/action_controller/metal/strong_parameters.rb @@ -252,7 +252,7 @@ module ActionController # to change these is to specify `always_permitted_parameters` in your # config. For instance: # - # config.always_permitted_parameters = %w( controller action format ) + # config.action_controller.always_permitted_parameters = %w( controller action format ) cattr_accessor :always_permitted_parameters, default: %w( controller action ) class << self