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 matchesshould 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
精彩评论