On 27 Mar., 07:01, Silviu Miki <[email protected]>
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 [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
-~----------~----~----~----~------~----~------~--~---