I''m using the account_location plugin to let users create accounts
(user.site.com)
in routes.rb I have:
  map.connect '''', :controller => "site",
:conditions => { :subdomain =>
''www'' }
  map.connect '''', :controller => "accounts"
so I can have a public facing www.site.com through site_controller and
have the accounts_controller handle everything else.
In my functional tests for the site controller for example, if I do
something simple like
get :index
the test tells me it''s been routed to the accounts controller. This
must
be because the test doesn''t know the subdomain perhaps. So I try
get ''www.site.com'' or get :index, :subdomain =>
''www''
and have the same results.
How can you get functional tests to recognize the subdomain? I''m
stumped
on this one.
-- 
Posted via http://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-/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
-~----------~----~----~----~------~----~------~--~---