1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix wording and minor typos in the Responder RDoc

This commit is contained in:
Dimitar Dimitrov 2011-11-11 19:37:54 +02:00
parent 89a164ab9b
commit a766d834a7

View file

@ -84,8 +84,8 @@ module ActionController #:nodoc:
# #
# === Custom options # === Custom options
# #
# <code>respond_with</code> also allow you to pass options that are forwarded # <code>respond_with</code> also allows you to pass options that are forwarded
# to the underlying render call. Those options are only applied success # to the underlying render call. Those options are only applied for success
# scenarios. For instance, you can do the following in the create method above: # scenarios. For instance, you can do the following in the create method above:
# #
# def create # def create
@ -95,7 +95,7 @@ module ActionController #:nodoc:
# respond_with(@project, @task, :status => 201) # respond_with(@project, @task, :status => 201)
# end # end
# #
# This will return status 201 if the task was saved with success. If not, # This will return status 201 if the task was saved successfully. If not,
# it will simply ignore the given options and return status 422 and the # it will simply ignore the given options and return status 422 and the
# resource errors. To customize the failure scenario, you can pass a # resource errors. To customize the failure scenario, you can pass a
# a block to <code>respond_with</code>: # a block to <code>respond_with</code>:
@ -224,7 +224,7 @@ module ActionController #:nodoc:
alias :navigation_location :resource_location alias :navigation_location :resource_location
alias :api_location :resource_location alias :api_location :resource_location
# If a given response block was given, use it, otherwise call render on # If a response block was given, use it, otherwise call render on
# controller. # controller.
# #
def default_render def default_render