Skip to content

Commit cf82b2e

Browse files
committed
typo "description not clear corrected with proper description and action_controller_overview file Rails' -> Rails" [ci skip]
1 parent dc5cf37 commit cf82b2e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

actionpack/lib/action_controller/metal/helpers.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ module ActionController
77
# extract complicated logic or reusable functionality is strongly encouraged. By default, each controller
88
# will include all helpers. These helpers are only accessible on the controller through <tt>.helpers</tt>
99
#
10-
# In previous versions of \Rails the controller will include a helper whose
11-
# name matches that of the controller, e.g., <tt>MyController</tt> will automatically
10+
# In previous versions of \Rails the controller will include a helper which
11+
# matches the name of the controller, e.g., <tt>MyController</tt> will automatically
1212
# include <tt>MyHelper</tt>. To return old behavior set +config.action_controller.include_all_helpers+ to +false+.
1313
#
1414
# Additional helpers can be specified using the +helper+ class method in ActionController::Base or any

guides/source/action_controller_overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1114,7 +1114,7 @@ Rescue
11141114

11151115
Most likely your application is going to contain bugs or otherwise throw an exception that needs to be handled. For example, if the user follows a link to a resource that no longer exists in the database, Active Record will throw the `ActiveRecord::RecordNotFound` exception.
11161116

1117-
Rails' default exception handling displays a "500 Server Error" message for all exceptions. If the request was made locally, a nice traceback and some added information gets displayed so you can figure out what went wrong and deal with it. If the request was remote Rails will just display a simple "500 Server Error" message to the user, or a "404 Not Found" if there was a routing error or a record could not be found. Sometimes you might want to customize how these errors are caught and how they're displayed to the user. There are several levels of exception handling available in a Rails application:
1117+
Rails default exception handling displays a "500 Server Error" message for all exceptions. If the request was made locally, a nice traceback and some added information gets displayed so you can figure out what went wrong and deal with it. If the request was remote Rails will just display a simple "500 Server Error" message to the user, or a "404 Not Found" if there was a routing error or a record could not be found. Sometimes you might want to customize how these errors are caught and how they're displayed to the user. There are several levels of exception handling available in a Rails application:
11181118

11191119
### The Default 500 and 404 Templates
11201120

0 commit comments

Comments
 (0)