diff options
author | Daniel Schierbeck <daniel.schierbeck@gmail.com> | 2009-12-21 23:50:54 +0100 |
---|---|---|
committer | Daniel Schierbeck <daniel.schierbeck@gmail.com> | 2009-12-21 23:50:54 +0100 |
commit | 02a31b9d8a46fcec2e8ef2c378ca4ce6070dd037 (patch) | |
tree | 9d61c00f74586cb649fa781358ea301487d3d521 /actionpack/lib | |
parent | d62661b46476181213a776819b19d4137b1441e8 (diff) | |
download | rails-02a31b9d8a46fcec2e8ef2c378ca4ce6070dd037.tar.gz rails-02a31b9d8a46fcec2e8ef2c378ca4ce6070dd037.tar.bz2 rails-02a31b9d8a46fcec2e8ef2c378ca4ce6070dd037.zip |
Fix some more typos in ActionController::Responder
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/metal/responder.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/actionpack/lib/action_controller/metal/responder.rb b/actionpack/lib/action_controller/metal/responder.rb index 0c6f1cc96a..e0932ff932 100644 --- a/actionpack/lib/action_controller/metal/responder.rb +++ b/actionpack/lib/action_controller/metal/responder.rb @@ -69,7 +69,7 @@ module ActionController #:nodoc: # Giving an array of resources, you ensure that the responder will redirect to # <code>project_task_url</code> instead of <code>task_url</code>. # - # Namespaced and singleton resources requires a symbol to be given, as in + # Namespaced and singleton resources require a symbol to be given, as in # polymorphic urls. If a project has one manager which has many tasks, it # should be invoked as: # @@ -116,7 +116,7 @@ module ActionController #:nodoc: navigation_behavior(e) end - # All others formats follow the procedure below. First we try to render a + # All other formats follow the procedure below. First we try to render a # template, if the template is not available, we verify if the resource # responds to :to_format and display it. # @@ -173,11 +173,11 @@ module ActionController #:nodoc: @default_response.call end - # display is just a shortcut to render a resource with the current format. + # Display is just a shortcut to render a resource with the current format. # # display @user, :status => :ok # - # For xml request is equivalent to: + # For XML requests it's equivalent to: # # render :xml => @user, :status => :ok # @@ -194,14 +194,14 @@ module ActionController #:nodoc: controller.render given_options.merge!(options).merge!(format => resource) end - # Check if the resource has errors or not. + # Check whether the resource has errors. # def has_errors? resource.respond_to?(:errors) && !resource.errors.empty? end - # By default, render the :edit action for html requests with failure, unless - # the verb is post. + # By default, render the <code>:edit</code> action for HTML requests with failure, unless + # the verb is POST. # def default_action @action || (request.post? ? :new : :edit) |