Rails3 Route 用法集锦
摘要:
默认路由: Ruby代码 # Rails3: match '/:controller(/:action(/:id))' # Rails2: map.connect ':controller/:action/:id' 正则路由: Ruby代码 # Rails3: match 'products/:id', :to => 'catalog#view' # Rails2: map.connect 'products/:id', :controller => 'catalog', :action 阅读全文
posted @ 2011-08-29 22:43 北国的雨 阅读(839) 评论(0) 推荐(0) 编辑