Are you creating subdirectories by hand and putting controllers in them like normal, or are you properly namespacing them? e.g.:
admin/incidents_controller.rb: IncidentsController < ApplicationController -or- admin/incidents_controller.rb: Admin::IncidentsController < ApplicationController -eric On Sep 19, 8:20 am, Tom Ha <rails-mailing-l...@andreas-s.net> wrote: > Hi there, > > how do I tell the current controller correctly to redirect_to an action > of another controller that is 1 level higher in the folder hierarchy > than the current controller? > > How I have tried: Within the current controller (called 'incidents'), I > have put: > > redirect_to :controller => 'members', :action => 'show', :id => > @user.id > > (Where 'members' is 1 level higher. And this doesn't work.) > > Thank you for any help with this! > Tom > -- > Posted viahttp://www.ruby-forum.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 -~----------~----~----~----~------~----~------~--~---