I'm having some issues with routing when using controllers in sub-folders.
I have controllers in an admin folder that look like this: class Admin::UsersController < ApplicationController end My link_to_remote calls look like this: <%= link_to_remote 'Users', :url => { :controller => 'admin/users', :action => :index } %> And then when I deploy to production I get errors such as: ActionView::MissingTemplate (Missing template admin/users.erb in view path /rails/myapp/releases/20090203200508/app/views:): In production it asks for the wrong template. It should be asking for the template app/views/admin/users/index.html.erb like it does in development. I found if I add a route: map.connect 'admin/users', :controller => 'admin/users', :action => 'index' my link_to_remote calls do begin to work in both development and production. I do not want to add a route for every single url I have in my admin. What's the solution? Using Rails 2.2.2. Thanks, -- Greg Donald http://destiney.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---