aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/examples/address_book_controller.rb
diff options
context:
space:
mode:
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