not sure what to look at... how would i go about creating tables within the application? i have my users and say, for each one i want to create another table(s) when they register, that would be customized to them and accessible only by them? miki -- Posted via http://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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
rubyguy-DaQTI0RpDDMAvxtiuMwx3w@public.gmane.org
2009-Mar-27 06:57 UTC
Re: create a table per user
On 27 Mar., 07:01, Silviu Miki <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> not sure what to look at... > how would i go about creating tables within the application? i have my > users and say, for each one i want to create another table(s) when they > register, that would be customized to them and accessible only by them?That kind of thing should never ever be done. Imagine when you reach, maybe, a thousand users, you''ll have at least thousand tables! Then imagine when you need to make a change in the users'' tables! I strongly recommend to make use of Rails'' has_many and belongs_to associations to keep track of which records belongs to which users, instead. -- Best regards, David Knorr http://twitter.com/rubyguy --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---