• J
    Rails router automatically calculated for you the controller and named routes... · b2c2b0ce
    José Valim 提交于
    Rails router automatically calculated for you the controller and named routes in the following scenarios:
    
      match "home/about"                 #=> maps to home#about with named route home_about_path
      match "about"                      #=> does not work because it cannot guess the controller
      match "about" => "home#about"      #=> maps to home#about with named route home_about_path
      match "home/about", :as => "about" #=> maps to home#about with named route about_path
    b2c2b0ce
mapper.rb 19.4 KB