I''m trying to create a normal user website which needs a blog section and a gallery section. It would be nice if have a structure like this domain.tld -> blog.domain.tld -> gallery.domain.tld The blog tables have a ''blog_'' prefix and the gallery a ''gal_'' prefix. (I can''t remove them, some tables have the same name) What would be the better approach? Create 2 rails applications, one for each section and make them look as one, or just create 1 and include the prefixes in the table names? (I recieved a good tip on how to change the prefix in a previous question, but that didn''t seem a clean solution) -- Roeland
On Sat, 18 Dec 2004 17:42:21 +0100, Roeland Moors <roelandmoors-CNXmb7IdZIWZIoH1IeqzKA@public.gmane.org> wrote:> I''m trying to create a normal user website which needs a blog > section and a gallery section. > > It would be nice if have a structure like this > domain.tld > -> blog.domain.tld > -> gallery.domain.tld > > The blog tables have a ''blog_'' prefix and the gallery a ''gal_'' > prefix. (I can''t remove them, some tables have the same name) > > What would be the better approach? > Create 2 rails applications, one for each section and make them > look as one, > or just create 1 and include the prefixes in the table names? > > (I recieved a good tip on how to change the prefix in a previous > question, but that didn''t seem a clean solution) >I''d vote for one Rails app.
> > > > It would be nice if have a structure like this > > domain.tld > > -> blog.domain.tld > > -> gallery.domain.tld > > > > The blog tables have a ''blog_'' prefix and the gallery a ''gal_'' > > prefix. (I can''t remove them, some tables have the same name) > > > > What would be the better approach? > > Create 2 rails applications, one for each section and make them > > look as one, > > or just create 1 and include the prefixes in the table names? > > > > (I recieved a good tip on how to change the prefix in a previous > > question, but that didn''t seem a clean solution) > > > > I''d vote for one Rails app.At first I was thinking that I couldn''t get the subdomains then, but I can probably do that with some htaccess magic. One rail app is indeed the better solution. I''ll start coding now and stop asking stupid questions :-) -- Roeland