Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source
Show
Ignore:
Timestamp:
04/05/08 03:52:58 (6 months ago)
Author:
pratik
Message:

Improve documentation.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/lib/action_controller/routing.rb

    r9115 r9226  
    4848  #   :action     maps to an action with your controllers 
    4949  # 
    50   # Other names simply map to a parameter as in the case of +:id+
     50  # Other names simply map to a parameter as in the case of <tt>:id</tt>
    5151  # 
    5252  # == Route priority 
     
    8383  # This means visiting '/' would invoke the blog controller. 
    8484  # 
    85   # More formally, you can define defaults in a route with the +:defaults+ key. 
     85  # More formally, you can define defaults in a route with the <tt>:defaults</tt> key. 
    8686  # 
    8787  #   map.connect ':controller/:action/:id', :action => 'show', :defaults => { :page => 'Dashboard' }