mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix a few typos [ci skip]
This commit is contained in:
parent
4b9dba99d6
commit
9b9ec0ded4
4 changed files with 5 additions and 5 deletions
|
@ -100,10 +100,10 @@ module AbstractController
|
|||
|
||||
# Returns the full controller name, underscored, without the ending Controller.
|
||||
#
|
||||
# class MyApp
|
||||
# MyPostsController < AbstractController::Base
|
||||
# class MyApp::MyPostsController < AbstractController::Base
|
||||
# end
|
||||
# end
|
||||
#
|
||||
# MyApp::MyPostsController.controller_path # => "my_app/my_posts"
|
||||
#
|
||||
# ==== Returns
|
||||
|
|
|
@ -17,7 +17,7 @@ module AbstractController
|
|||
extend ActiveSupport::Concern
|
||||
include ActionView::ViewPaths
|
||||
|
||||
# Normalize arguments, options and then delegates render_to_body and
|
||||
# Normalizes arguments, options and then delegates render_to_body and
|
||||
# sticks the result in <tt>self.response_body</tt>.
|
||||
# :api: public
|
||||
def render(*args, &block)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
* Default translations that have a lower precidence than an html safe default,
|
||||
* Default translations that have a lower precedence than a html safe default,
|
||||
but are not themselves safe, should not be marked as html_safe.
|
||||
|
||||
*Justin Coyne*
|
||||
|
|
|
@ -63,7 +63,7 @@ class Object
|
|||
try!(*a, &b) if a.empty? || respond_to?(a.first)
|
||||
end
|
||||
|
||||
# Same as #try, but will raise a NoMethodError exception if the receiver is
|
||||
# Same as #try, but raises a NoMethodError exception if the receiver is
|
||||
# not +nil+ and does not implement the tried method.
|
||||
#
|
||||
# "a".try!(:upcase) # => "A"
|
||||
|
|
Loading…
Reference in a new issue