I used an organization_id in most of the models to stripe data. I use a better_nested_set to have a hierarchy of organizations. If the user is assigned to an organization, they can do CRUD on that organization and its children. I used named scopes in the model to pass the user_id from controller and get back data specific to that user (his org and children orgs). Send me an email if you need some code examples. In terms of scalability, I am thinking at some stage I will figure out a trigger point to have another saas instance once we get close to that threshold.
On Sep 29, 2:36 am, Frederick Cheung <[EMAIL PROTECTED]> wrote: > On 29 Sep 2008, at 05:41, Victor Al <[EMAIL PROTECTED]> > wrote: > > > > > I'm sorry if I misunderstood the purpose of your plugins then. I've > > come > > across your site several times before through Google searches (on RoR > > and SaaS) and from the descriptions, the focus seemed really on the > > billing aspect. > > > That being said, I don't buy the "common sense" argument when > > designing > > SaaS with RoR -- I do think there's more than that when we move to > > more > > serious applications, with many users, especially (though not only) in > > an enterprise setting. > > My 2 cents is that SaaS is a buzzword. It's not actually anything new > as far as web apps are concerned (eg hotmail was SaaS 10 years ago). > There aren't much in the way of new problems. > > Fred > > > > > For small apps, true, common sense says things can be nice and easy. > > But > > go to thousands of users, hundreds of tables and simultaneous requests > > and you got a different set of needs. > > -- > > Posted viahttp://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@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---