diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-09-04 19:42:10 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-09-04 19:42:10 +0000 |
commit | 939017487d6fb3ad255f98079deadcef1e4054b0 (patch) | |
tree | 990ae4a3eb569a53e170556f576ed3252c7c1fe1 | |
parent | 4c966a07a1f8d33290e2374066ccae392d74db41 (diff) | |
download | rails-939017487d6fb3ad255f98079deadcef1e4054b0.tar.gz rails-939017487d6fb3ad255f98079deadcef1e4054b0.tar.bz2 rails-939017487d6fb3ad255f98079deadcef1e4054b0.zip |
Update usage notes to verify
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4996 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | actionpack/lib/action_controller/verification.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/verification.rb b/actionpack/lib/action_controller/verification.rb index 57dc5b86f9..d9b10cebca 100644 --- a/actionpack/lib/action_controller/verification.rb +++ b/actionpack/lib/action_controller/verification.rb @@ -34,6 +34,9 @@ module ActionController #:nodoc: # :add_flash => { "alert" => "Failed to create your message" }, # :redirect_to => :category_url # + # Note that these prerequisites are not business rules. They do not examine + # the content of the session or the parameters. That level of validation should + # be encapsulated by your domain model or helper methods in the controller. module ClassMethods # Verify the given actions so that if certain prerequisites are not met, # the user is redirected to a different action. The +options+ parameter |