开发者

rails 3 No route matches error

I am new开发者_StackOverflowbe to rails3

I have 20 controllers in my rails app..redirecting from one controller to another one my rails app gives No Route matches

should I add resources :controllername entry for each controller in routes.rb file?

or any other general method to do this?


When you run rake:routes is your route there? If it is not you'll get 'No route matches'. It is much better to use your routes.rb config then to continuously redirect from one controller to another

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜