aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/base.rb
diff options
context:
space:
mode:
authorRick Olson <technoweenie@gmail.com>2007-11-29 02:08:51 +0000
committerRick Olson <technoweenie@gmail.com>2007-11-29 02:08:51 +0000
commit0a9bc591e78382b221ef5c2f463bac90564b9982 (patch)
treefb4a264ddb46ba16fd04327f6ca27da1aa1a5569 /actionpack/lib/action_controller/base.rb
parentab73a988aca073e6ff16cd608df6e2e08808d31c (diff)
downloadrails-0a9bc591e78382b221ef5c2f463bac90564b9982.tar.gz
rails-0a9bc591e78382b221ef5c2f463bac90564b9982.tar.bz2
rails-0a9bc591e78382b221ef5c2f463bac90564b9982.zip
Raise UnknownHttpMethod exception for unknown HTTP methods. Closes #10303 [tarmo]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8235 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller/base.rb')
-rwxr-xr-xactionpack/lib/action_controller/base.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb
index 3193362fc8..b9fd25aa8f 100755
--- a/actionpack/lib/action_controller/base.rb
+++ b/actionpack/lib/action_controller/base.rb
@@ -85,6 +85,8 @@ module ActionController #:nodoc:
end
end
+ class UnknownHttpMethod < ActionControllerError #:nodoc:
+ end
# Action Controllers are the core of a web request in Rails. They are made up of one or more actions that are executed
# on request and then either render a template or redirect to another action. An action is defined as a public method