· 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]