On 03 Mar 2009, at 11:40, Vincent Bakker wrote:

> you don't need a entire plugin for this. I use the recipe from  
> Advanced
> Rails Recipes (http://railsbookclub.com/advanced-rails-recipes) It ads
> an extra column  to your account model and uses a simple before filter
> to match the account to the subdomain.

True, but plugins do provide portability. If you plan on using this  
type of scoping a lot, a plugin that mixes in the functionality into  
any Rails app might be more feasible. It's not like there's a lot of  
complicated things going on in the plugin either. However, I do agree  
that it's best to understand what the plugin actually does, so you can  
tailor (and fork) it to your own needs.


Best regards

Peter De Berdt


--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to