diff options
author | Ryan Bigg <radarlistener@gmail.com> | 2010-12-10 15:55:46 +1000 |
---|---|---|
committer | Ryan Bigg <radarlistener@gmail.com> | 2010-12-10 15:55:46 +1000 |
commit | dbf955c03b8d185b7977d90281389cf52d546c5d (patch) | |
tree | 3f98bec6fa578aed73a183aa1902eebe6179e27e /railties/guides | |
parent | f0d4b7f2a655ca2fb435af798714fee2de232d1e (diff) | |
download | rails-dbf955c03b8d185b7977d90281389cf52d546c5d.tar.gz rails-dbf955c03b8d185b7977d90281389cf52d546c5d.tar.bz2 rails-dbf955c03b8d185b7977d90281389cf52d546c5d.zip |
Action Controller Overview: Remove dead link to the API docs for filters
Diffstat (limited to 'railties/guides')
-rw-r--r-- | railties/guides/source/action_controller_overview.textile | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/railties/guides/source/action_controller_overview.textile b/railties/guides/source/action_controller_overview.textile index 0d6c66f168..0d6919a205 100644 --- a/railties/guides/source/action_controller_overview.textile +++ b/railties/guides/source/action_controller_overview.textile @@ -478,8 +478,6 @@ end Again, this is not an ideal example for this filter, because it's not run in the scope of the controller but gets the controller passed as an argument. The filter class has a class method +filter+ which gets run before or after the action, depending on if it's a before or after filter. Classes used as around filters can also use the same +filter+ method, which will get run in the same way. The method must +yield+ to execute the action. Alternatively, it can have both a +before+ and an +after+ method that are run before and after the action. -The Rails API documentation has "more information on using filters":http://ap.rubyonrails.org/classes/ActionController/Filters/ClassMethods.html. - h3. Verification Verifications make sure certain criteria 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 criteria 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://ap.rubyonrails.org/classes/ActionController/Verification/ClassMethods.html as "essentially a special kind of before_filter". |