[Rails] Re: Subdomains with Rails 2.2

2008-12-05 Thread Perry D
es' > railscast on this but he does not go into dynamically added subdomains > and routes. Can any of you point me to some resources for getting > started on this? > Thanks! > > On Dec 4, 6:32 pm, Perry D <[EMAIL PROTECTED]> wrote: > > > That's awesome. I

[Rails] Re: Subdomains with Rails 2.2

2008-12-04 Thread Perry D
ler(s) you need subdomain access. > > before_filter :load_account > def load_account >   @account = Account.find(:first, :conditions => ["slug = ?", > request.subdomains.first]) >   raise ActiveRecord::RecordNotFound unless @account > end > > On Dec 3, 10:16 am, Perry

[Rails] Subdomains with Rails 2.2

2008-12-03 Thread Perry D
I'm pretty new here, but if anybody had ideas on how to go about using subdomains for accounts within Rails 2.2. I had seen the subdomain-fu plugin, but it didn't look like it plays very well with 2.2. Anyone know of other plugins that might be useful? --~--~-~--~~~---