Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 4268

Show
Ignore:
Timestamp:
04/25/06 17:42:48 (3 years ago)
Author:
marcel
Message:

Remove all remaining references to @params in the documentation.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/CHANGELOG

    r4267 r4268  
    11*SVN* 
     2 
     3* Remove all remaining references to @params in the documentation. [Marcel Molina Jr.] 
    24 
    35* Add documentation for redirect_to :back's RedirectBackError exception.  [Marcel Molina Jr.] 
  • trunk/actionpack/lib/action_controller/base.rb

    r4267 r4268  
    264264    # Modern REST web services often need to submit complex data to the web application.  
    265265    # The param_parsers hash lets you register handlers wich will process the http body and add parameters to the  
    266     # @params hash. These handlers are invoked for post and put requests. 
     266    # <tt>params</tt> hash. These handlers are invoked for post and put requests. 
    267267    # 
    268268    # 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 one 
     269    # in the <tt>params</tt>. This allows XML requests to mask themselves as regular form submissions, so you can have one 
    270270    # action serve both regular forms and web service requests. 
    271271    #  
  • trunk/actionpack/lib/action_controller/caching.rb

    r4125 r4268  
    3939    #   class WeblogController < ActionController::Base 
    4040    #     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
    4444    #     end 
    4545    #   end 
  • trunk/actionpack/lib/action_controller/pagination.rb

    r3620 r4268  
    3232  # current page (at most 20, sorted by last name and first name), and a  
    3333  # <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. 
    3535  # 
    3636  # ==== Pagination for a single action 
     
    4848  # 
    4949  #   def list 
    50   #     @person_pages = Paginator.new self, Person.count, 10, @params['page'
     50  #     @person_pages = Paginator.new self, Person.count, 10, params[:page
    5151  #     @people = Person.find :all, :order => 'last_name, first_name',  
    5252  #                           :limit  =>  @person_pages.items_per_page, 
  • trunk/actionpack/lib/action_controller/streaming.rb

    r2325 r4268  
    1515      # 
    1616      # Be careful to sanitize the path parameter if it coming from a web 
    17       # page.  send_file(@params['path']) allows a malicious user to 
     17      # page.  send_file(params[:path]) allows a malicious user to 
    1818      # download any file on your server. 
    1919      # 
  • trunk/actionpack/lib/action_controller/verification.rb

    r4201 r4268  
    3838      # 
    3939      # * <tt>:params</tt>: a single key or an array of keys that must 
    40       #   be in the @params hash in order for the action(s) to be safely 
     40      #   be in the <tt>params</tt> hash in order for the action(s) to be safely 
    4141      #   called. 
    4242      # * <tt>:session</tt>: a single key or an array of keys that must 
  • trunk/actionpack/lib/action_view/helpers/prototype_helper.rb

    r4215 r4268  
    144144      # though it's using JavaScript to serialize the form elements, the form 
    145145      # submission will work just like a regular submission as viewed by the 
    146       # receiving side (all elements available in @params). The options for  
     146      # receiving side (all elements available in <tt>params</tt>). The options for  
    147147      # specifying the target with :url and defining callbacks is the same as 
    148148      # link_to_remote.