1.4ruby script/server -p port 使用指定的端口启动ruby on rails网站服务
2.为"/"创建路由需要在默认路由下,如在rails2.3中
map.connect ':controller/:action/:id'
map.connect ':controller/:action/:id.:format'
map.root :controller => "home"
否则将报错如:
No route matches "/product" with {:method=>:get}
|
请发表评论