Subdomains question

Hello,

I have followed

http://www.robbyonrails.com/articles/2009/01/11/subdomain-accounts-with-ruby-on-rails-explained
and

posts on working with subdomains (without the use of subomain-fu and
other plugins). In those examples a user only can log into his/her
account through his/her own subdomain.

I wonder is there a way to log into one’s account (subdomain) from the
domain.

Example:

Logging from www.foo.com/session/new,

should redirect me to,

elioncho.foo.com

Any ideas? Thanks,

On Fri, Jan 16, 2009 at 12:16 PM, elioncho [email protected] wrote:

account through his/her own subdomain.
elioncho.foo.com

Hi there,

You could just authenticate off of the Person/User model (whatever you
name that) without scoping it to the account. Then just redirect_to
account_path(@user.account) or something along those lines.

Good luck!

Cheers,
Robby


Robby R.
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails


http://www.robbyonrails.com/
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs