diff options
author | Dimitar Dimitrov <wireman@gmail.com> | 2011-11-11 19:37:54 +0200 |
---|---|---|
committer | Dimitar Dimitrov <wireman@gmail.com> | 2011-11-11 19:52:38 +0200 |
commit | a766d834a73efe6a59cbfaf4f25ab73c088465d7 (patch) | |
tree | 9ce410e0e20a290db04b1e45112d7520492a6016 /actionpack/lib | |
parent | 89a164ab9b028d855023c88e4afcdf55276a1363 (diff) | |
download | rails-a766d834a73efe6a59cbfaf4f25ab73c088465d7.tar.gz rails-a766d834a73efe6a59cbfaf4f25ab73c088465d7.tar.bz2 rails-a766d834a73efe6a59cbfaf4f25ab73c088465d7.zip |
Fix wording and minor typos in the Responder RDoc
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/metal/responder.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/lib/action_controller/metal/responder.rb b/actionpack/lib/action_controller/metal/responder.rb index c7827309dd..2f19c76bff 100644 --- a/actionpack/lib/action_controller/metal/responder.rb +++ b/actionpack/lib/action_controller/metal/responder.rb @@ -84,8 +84,8 @@ module ActionController #:nodoc: # # === Custom options # - # <code>respond_with</code> also allow you to pass options that are forwarded - # to the underlying render call. Those options are only applied success + # <code>respond_with</code> also allows you to pass options that are forwarded + # 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: # # def create @@ -95,7 +95,7 @@ module ActionController #:nodoc: # respond_with(@project, @task, :status => 201) # 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 # resource errors. To customize the failure scenario, you can pass a # a block to <code>respond_with</code>: @@ -224,7 +224,7 @@ module ActionController #:nodoc: alias :navigation_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. # def default_render |