diff options
author | Marcel Molina <marcel@vernix.org> | 2006-04-25 17:42:48 +0000 |
---|---|---|
committer | Marcel Molina <marcel@vernix.org> | 2006-04-25 17:42:48 +0000 |
commit | 09095c720406d80f5faf482a0dd840a290f1781d (patch) | |
tree | 5b1dc3f52855ec028a44e33d9d4c1f538a99f6c5 /actionpack/lib/action_controller | |
parent | 21142201c9c60fe5d1299cb3b4fb22fb3b7747e7 (diff) | |
download | rails-09095c720406d80f5faf482a0dd840a290f1781d.tar.gz rails-09095c720406d80f5faf482a0dd840a290f1781d.tar.bz2 rails-09095c720406d80f5faf482a0dd840a290f1781d.zip |
Remove all remaining references to @params in the documentation.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4268 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller')
-rwxr-xr-x | actionpack/lib/action_controller/base.rb | 4 | ||||
-rw-r--r-- | actionpack/lib/action_controller/caching.rb | 6 | ||||
-rw-r--r-- | actionpack/lib/action_controller/pagination.rb | 4 | ||||
-rw-r--r-- | actionpack/lib/action_controller/streaming.rb | 2 | ||||
-rw-r--r-- | actionpack/lib/action_controller/verification.rb | 2 |
5 files changed, 9 insertions, 9 deletions
diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb index 3ed99ba793..16d54e5071 100755 --- a/actionpack/lib/action_controller/base.rb +++ b/actionpack/lib/action_controller/base.rb @@ -263,10 +263,10 @@ module ActionController #:nodoc: # Modern REST web services often need to submit complex data to the web application. # The param_parsers hash lets you register handlers wich will process the http body and add parameters to the - # @params hash. These handlers are invoked for post and put requests. + # <tt>params</tt> hash. These handlers are invoked for post and put requests. # # By default application/xml is enabled. A XmlSimple class with the same param name as the root will be instanciated - # in the @params. This allows XML requests to mask themselves as regular form submissions, so you can have one + # in the <tt>params</tt>. This allows XML requests to mask themselves as regular form submissions, so you can have one # action serve both regular forms and web service requests. # # Example of doing your own parser for a custom content type: diff --git a/actionpack/lib/action_controller/caching.rb b/actionpack/lib/action_controller/caching.rb index 0cb70c865a..91da89ad5a 100644 --- a/actionpack/lib/action_controller/caching.rb +++ b/actionpack/lib/action_controller/caching.rb @@ -38,9 +38,9 @@ module ActionController #:nodoc: # # class WeblogController < ActionController::Base # def update - # List.update(@params["list"]["id"], @params["list"]) - # expire_page :action => "show", :id => @params["list"]["id"] - # redirect_to :action => "show", :id => @params["list"]["id"] + # List.update(params[:list][:id], params[:list]) + # expire_page :action => "show", :id => params[:list][:id] + # redirect_to :action => "show", :id => params[:list][:id] # end # end # diff --git a/actionpack/lib/action_controller/pagination.rb b/actionpack/lib/action_controller/pagination.rb index 630b244a0e..a1053e65a7 100644 --- a/actionpack/lib/action_controller/pagination.rb +++ b/actionpack/lib/action_controller/pagination.rb @@ -31,7 +31,7 @@ module ActionController # instance variable, which is an ordered collection of model objects for the # current page (at most 20, sorted by last name and first name), and a # <tt>@person_pages</tt> Paginator instance. The current page is determined - # by the <tt>@params['page']</tt> variable. + # by the <tt>params[:page]</tt> variable. # # ==== Pagination for a single action # @@ -47,7 +47,7 @@ module ActionController # ==== Custom/"classic" pagination # # def list - # @person_pages = Paginator.new self, Person.count, 10, @params['page'] + # @person_pages = Paginator.new self, Person.count, 10, params[:page] # @people = Person.find :all, :order => 'last_name, first_name', # :limit => @person_pages.items_per_page, # :offset => @person_pages.current.offset diff --git a/actionpack/lib/action_controller/streaming.rb b/actionpack/lib/action_controller/streaming.rb index 2c4e76f359..c265c86045 100644 --- a/actionpack/lib/action_controller/streaming.rb +++ b/actionpack/lib/action_controller/streaming.rb @@ -14,7 +14,7 @@ module ActionController #:nodoc: # it feasible to send even large files. # # Be careful to sanitize the path parameter if it coming from a web - # page. send_file(@params['path']) allows a malicious user to + # page. send_file(params[:path]) allows a malicious user to # download any file on your server. # # Options: diff --git a/actionpack/lib/action_controller/verification.rb b/actionpack/lib/action_controller/verification.rb index cba4a2b739..b12907c35f 100644 --- a/actionpack/lib/action_controller/verification.rb +++ b/actionpack/lib/action_controller/verification.rb @@ -37,7 +37,7 @@ module ActionController #:nodoc: # is a hash consisting of the following key/value pairs: # # * <tt>:params</tt>: a single key or an array of keys that must - # be in the @params hash in order for the action(s) to be safely + # be in the <tt>params</tt> hash in order for the action(s) to be safely # called. # * <tt>:session</tt>: a single key or an array of keys that must # be in the @session in order for the action(s) to be safely called. |