· 1 min read

Screencast: Routing in Rails 3

Download:

Download(39.7 MB, 13:22) Alternativer Download fĂŒr iPod & Apple TV(32.9 MB, 13:22)

Resourcen:

Quellcode:

[bash] git clone git://github.com/rails/rails.git git checkout v3.0.0 [/bash]

[ruby] match ‘products’, :to => ‘products#index’ # same as match ‘products’, :to => ProductsController.action(“index”)

match ‘products/recent’ # same as match ‘products/recent’, :to =>‘products#recent’, :as => ‘products_recent’ [/ruby]

Back to Blog