diff options
author | Tore Darell <toredarell@gmail.com> | 2008-10-07 22:16:28 +0200 |
---|---|---|
committer | Tore Darell <toredarell@gmail.com> | 2008-10-07 22:16:28 +0200 |
commit | b4da5f67708b2699a21f8bb39f4d10865c1814d4 (patch) | |
tree | 4292a27b09d11e3f1e37b1751e28ed87fb256865 /railties/doc/guides/actioncontroller/verification.txt | |
parent | dfc0b1a716d17085224a375977a10407ba9bea24 (diff) | |
download | rails-b4da5f67708b2699a21f8bb39f4d10865c1814d4.tar.gz rails-b4da5f67708b2699a21f8bb39f4d10865c1814d4.tar.bz2 rails-b4da5f67708b2699a21f8bb39f4d10865c1814d4.zip |
Fix links in AC guide
Diffstat (limited to 'railties/doc/guides/actioncontroller/verification.txt')
-rw-r--r-- | railties/doc/guides/actioncontroller/verification.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/doc/guides/actioncontroller/verification.txt b/railties/doc/guides/actioncontroller/verification.txt index 1a4f7a8de5..39046eee85 100644 --- a/railties/doc/guides/actioncontroller/verification.txt +++ b/railties/doc/guides/actioncontroller/verification.txt @@ -1,6 +1,6 @@ == Verification == -Verifications make sure certain criterias are met in order for a controller or action to run. They can specify that a certain key (or several keys in the form of an array) is present in the `params`, `session` or `flash` hashes or that a certain HTTP method was used or that the request was made using XMLHTTPRequest (Ajax). The default action taken when these criterias are not met is to render a 400 Bad Request response, but you can customize this by specifying a redirect URL or rendering something else and you can also add flash messages and HTTP headers to the response. It is described in the "API documentation":http://api.rubyonrails.org/classes/ActionController/Verification/ClassMethods.html as "essentially a special kind of before_filter". +Verifications make sure certain criterias are met in order for a controller or action to run. They can specify that a certain key (or several keys in the form of an array) is present in the `params`, `session` or `flash` hashes or that a certain HTTP method was used or that the request was made using XMLHTTPRequest (Ajax). The default action taken when these criterias are not met is to render a 400 Bad Request response, but you can customize this by specifying a redirect URL or rendering something else and you can also add flash messages and HTTP headers to the response. It is described in the link:http://api.rubyonrails.org/classes/ActionController/Verification/ClassMethods.html[API codumentation] as "essentially a special kind of before_filter". Let's see how we can use verification to make sure the user supplies a username and a password in order to log in: |