aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/examples/address_book_controller.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2006-08-07 12:40:14 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2006-08-07 12:40:14 +0000
commitc40b1a4a67ccaa3be31edb13399d93da0c628567 (patch)
tree2c943fc5485bb29617911afd8da56bd269103bee /actionpack/examples/address_book_controller.rb
parenta3b045a73e729e44719713084462825ef98f8bc0 (diff)
downloadrails-c40b1a4a67ccaa3be31edb13399d93da0c628567.tar.gz
rails-c40b1a4a67ccaa3be31edb13399d93da0c628567.tar.bz2
rails-c40b1a4a67ccaa3be31edb13399d93da0c628567.zip
Deprecate direct usage of @params. Update ActionView::Base for instance var deprecation.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4715 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/examples/address_book_controller.rb')
-rw-r--r--actionpack/examples/address_book_controller.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/examples/address_book_controller.rb b/actionpack/examples/address_book_controller.rb
index 01d498e1bc..9ca6612512 100644
--- a/actionpack/examples/address_book_controller.rb
+++ b/actionpack/examples/address_book_controller.rb
@@ -28,11 +28,11 @@ class AddressBookController < ActionController::Base
end
def person
- @person = @address_book.find_person(@params["id"])
+ @person = @address_book.find_person(params[:id])
end
def create_person
- @address_book.create_person(@params["person"])
+ @address_book.create_person(params[:person])
redirect_to :action => "index"
end
@@ -49,4 +49,4 @@ begin
AddressBookController.process_cgi(CGI.new) if $0 == __FILE__
rescue => e
CGI.new.out { "#{e.class}: #{e.message}" }
-end \ No newline at end of file
+end