Hi Adam, If I understand your requirements correctly, you're trying to build what is called a 'multi tenant' web application.
This linked looked promising when I searched 'multi tenant rails' on google: http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/bf54d7a5f244a94d hope that helps, --Jon On Wed, Oct 21, 2009 at 12:30 PM, Adam Grant <[email protected]> wrote: > Hi everyone, > > I wanted to get some ideas/links/references from you concerning the > building of account management into a new site of ours. Essentially, people > will sign up for our web service for $$$/month and should only see their > data. Now, in previous simple projects, we've just put in each database > table that held user-specific data an "account_id" column, and depending on > the user's session info, would only do ActiveRecord searches filtered with > {:conditions => ["account_id = ?", current_user.account_id]}. Is there a > better way to do this? I haven't worked on any large web sites, and the > technical web resources (aka. other programmers) I have available to me at > my current position are nil (see Lead Web Engineer at the bottom...). Are > there more secure ways to go about this, or is this a pretty straightforward > approach to a simple problem? > > PS: I don't even know what to search for on Google to read up on this > abstraction level of web architecture! Does it have a name? > > Thanks, > Adam > > -- > Adam Grant > Lead Web Engineer > Telaeris, Inc. > [email protected] > (858) 627-9710 > > > > --~--~---------~--~----~------------~-------~--~----~ SD Ruby mailing list [email protected] http://groups.google.com/group/sdruby -~----------~----~----~----~------~----~------~--~---
