Forum: Ruby on Rails Subdomains question

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
A1247f73598357f06388e863c41aa624?d=identicon&s=25 Elias Orozco (elioncho)
on 2009-01-16 21:16
(Received via mailing list)

I have followed

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


Logging from,

should redirect me to,

Any ideas? Thanks,
A82ba1167f4d4a8d1de63820e576a87f?d=identicon&s=25 Robby Russell (Guest)
on 2009-01-18 20:43
(Received via mailing list)
On Fri, Jan 16, 2009 at 12:16 PM, elioncho <> wrote:
> account through his/her own subdomain.

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!


Robby Russell
Chief Evangelist, Partner

design // development // hosting w/Ruby on Rails
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]
This topic is locked and can not be replied to.