Rails 3 routing - passing params from routes.rb

后端 未结 1 702
太阳男子
太阳男子 2020-12-29 03:44

In rails 2.3.5 you could do something like this inside the routes.rb file:

map.root :controller => \"pages\", :action => \"show\", :id => 3
<         


        
相关标签:
1条回答
  • 2020-12-29 04:10

    Are you sure the following doesn't work?

    root :to => "pages#show", :id => 3
    
    0 讨论(0)
提交回复
热议问题