Changeset 4268
- Timestamp:
- 04/25/06 17:42:48 (3 years ago)
- Files:
-
- trunk/actionpack/CHANGELOG (modified) (1 diff)
- trunk/actionpack/lib/action_controller/base.rb (modified) (1 diff)
- trunk/actionpack/lib/action_controller/caching.rb (modified) (1 diff)
- trunk/actionpack/lib/action_controller/pagination.rb (modified) (2 diffs)
- trunk/actionpack/lib/action_controller/streaming.rb (modified) (1 diff)
- trunk/actionpack/lib/action_controller/verification.rb (modified) (1 diff)
- trunk/actionpack/lib/action_view/helpers/prototype_helper.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/CHANGELOG
r4267 r4268 1 1 *SVN* 2 3 * Remove all remaining references to @params in the documentation. [Marcel Molina Jr.] 2 4 3 5 * Add documentation for redirect_to :back's RedirectBackError exception. [Marcel Molina Jr.] trunk/actionpack/lib/action_controller/base.rb
r4267 r4268 264 264 # Modern REST web services often need to submit complex data to the web application. 265 265 # The param_parsers hash lets you register handlers wich will process the http body and add parameters to the 266 # @paramshash. These handlers are invoked for post and put requests.266 # <tt>params</tt> hash. These handlers are invoked for post and put requests. 267 267 # 268 268 # By default application/xml is enabled. A XmlSimple class with the same param name as the root will be instanciated 269 # in the @params. This allows XML requests to mask themselves as regular form submissions, so you can have one269 # in the <tt>params</tt>. This allows XML requests to mask themselves as regular form submissions, so you can have one 270 270 # action serve both regular forms and web service requests. 271 271 # trunk/actionpack/lib/action_controller/caching.rb
r4125 r4268 39 39 # class WeblogController < ActionController::Base 40 40 # def update 41 # List.update( @params["list"]["id"], @params["list"])42 # expire_page :action => "show", :id => @params["list"]["id"]43 # redirect_to :action => "show", :id => @params["list"]["id"]41 # List.update(params[:list][:id], params[:list]) 42 # expire_page :action => "show", :id => params[:list][:id] 43 # redirect_to :action => "show", :id => params[:list][:id] 44 44 # end 45 45 # end trunk/actionpack/lib/action_controller/pagination.rb
r3620 r4268 32 32 # current page (at most 20, sorted by last name and first name), and a 33 33 # <tt>@person_pages</tt> Paginator instance. The current page is determined 34 # by the <tt> @params['page']</tt> variable.34 # by the <tt>params[:page]</tt> variable. 35 35 # 36 36 # ==== Pagination for a single action … … 48 48 # 49 49 # def list 50 # @person_pages = Paginator.new self, Person.count, 10, @params['page']50 # @person_pages = Paginator.new self, Person.count, 10, params[:page] 51 51 # @people = Person.find :all, :order => 'last_name, first_name', 52 52 # :limit => @person_pages.items_per_page, trunk/actionpack/lib/action_controller/streaming.rb
r2325 r4268 15 15 # 16 16 # Be careful to sanitize the path parameter if it coming from a web 17 # page. send_file( @params['path']) allows a malicious user to17 # page. send_file(params[:path]) allows a malicious user to 18 18 # download any file on your server. 19 19 # trunk/actionpack/lib/action_controller/verification.rb
r4201 r4268 38 38 # 39 39 # * <tt>:params</tt>: a single key or an array of keys that must 40 # be in the @paramshash in order for the action(s) to be safely40 # be in the <tt>params</tt> hash in order for the action(s) to be safely 41 41 # called. 42 42 # * <tt>:session</tt>: a single key or an array of keys that must trunk/actionpack/lib/action_view/helpers/prototype_helper.rb
r4215 r4268 144 144 # though it's using JavaScript to serialize the form elements, the form 145 145 # submission will work just like a regular submission as viewed by the 146 # receiving side (all elements available in @params). The options for146 # receiving side (all elements available in <tt>params</tt>). The options for 147 147 # specifying the target with :url and defining callbacks is the same as 148 148 # link_to_remote.