Hi all
I have a problem with mapping url to controller which is deeper in
controller directory (not root directory). I wanted to move
acts_as_authenticated account_controller deeper to directory (let''s
call it Foo) and route it as /Foo/Account, but i always seem to get
exception that no route matched my request
file structure:
/app
+- /controllers
+- /Foo
+- /account_controller.rb
-- routes.rb --
map.connect ''Foo'', :controller =>
''/Foo/Index''
map.connect ''Foo/:controller/:action/:id''
...
-- ~ routes.rb --
-- /Foo/account_controller.rb --
class Foo::AccountController < ApplicationController
-- ~ /Foo/account_controller.rb --
Strange thing is - when i point my browser to mydomain.com/Foo i
always get redirected to /Foo/account/login (where exception takes
place), that means - get right routing for /Foo/Index controller which
is:
class Foo::IndexController < Foo::AccountController
Even more strange thing: this worked on RoR 1.2.2. I began getting
exceptions after i upgraded to RoR 1.2.3. I''m quite lost. I''ve
already
tried IRC channel in freenode.net
Thanks for any help.
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---