简体   繁体   English

Ruby on Rails路由问题

[英]Ruby on Rails routing problem

The company that hosts my website did an upgrade on the weekend and now all my ROR apps are coming up with this : 托管我网站的公司在周末进行了升级,现在我所有的ROR应用都提出了以下建议:

Routing Error 路由错误

No route matches "/geotest/" with {:method=>:get} 没有路线将{/ method =>:get}与“ / geotest /”匹配

These were working before and do work on my development system, but there has been no response to my ticket to their tech support. 他们以前工作过,并且确实可以在我的开发系统上工作,但是我对他们的技术支持没有反应。 Anyone got a suggestion how I could fix this? 有人建议我该如何解决?

Maybe they upgraded to Rails 3 ? 也许他们升级到了Rails 3? Your route should work anyway, but try to add this to your routes.rb file : 无论如何,您的路由都应该可以运行,但是请尝试将其添加到route.rb文件中:

get '/geotest' => 'your_controller_name#index'

Change your_controller_name accordingly, of course. 当然,相应地更改your_controller_name。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM