Hello, I have been working on a site that I am building using Rails and so far everything seems to be working quite well. I am quite pleased with the simplicity but yet how flexible and powerful Rails is. My question is now that I have my basic functionality up and running, I would like to integrate other apps instead of having to reinvent the wheel, for example use RForum instead of developing my own, etc. What''s the approach that you would take to do something like that? Using another subdomain and using another Rails app? That wouldn''t be the best solution when you want to have a single user base, etc ... Any ideas? Has it been done already? Cheers /B -- Bruno Mattarollo <bmatt-ee4meeAH724@public.gmane.org> Currently in: Sydney, Australia [ http://pokies.typepad.com/virtual_possum/ ] _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Hi Bruno, That''s an interesting question I''ve been wondering too, and am a bit surprised it hasn''t been raised here before (that I''d know, at least). On 9.12.2004, at 04:06, Bruno Mattarollo wrote:> What''s the approach that you would take to do something like that? > Using another subdomain and using another Rails app?Or just copying the controllers and models over. Then you''d be able to reuse e.g. the user controllers etc. I would like to know if there is (or is planned) a way to easily package such an application.> That wouldn''t be the best solution when you want to have a single > user base, etc ... Any ideas? Has it been done already?I haven''t done this but will probably soon enough. Anyway, you can always connect to the same database from different apps, and even to multiple databases from one app. That way for instance your user model could use the same database rforum does and the rest of your application could use your own db. I don''t know how the referential checks etc would work then, tho. //jarkko -- Jarkko Laine http://jlaine.net _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
I asked a similar question and then posted a the answer on http://www.rubyonrails.org/show/TheBigPicture Hope it helps... Jarkko Laine wrote:> Hi Bruno, > > That''s an interesting question I''ve been wondering too, and am a bit > surprised it hasn''t been raised here before (that I''d know, at least). > > On 9.12.2004, at 04:06, Bruno Mattarollo wrote: > >> What''s the approach that you would take to do something like that? >> Using another subdomain and using another Rails app? > > > Or just copying the controllers and models over. Then you''d be able to > reuse e.g. the user controllers etc. I would like to know if there is > (or is planned) a way to easily package such an application. > >> That wouldn''t be the best solution when you want to have a single >> user base, etc ... Any ideas? Has it been done already? > > > I haven''t done this but will probably soon enough. Anyway, you can > always connect to the same database from different apps, and even to > multiple databases from one app. That way for instance your user model > could use the same database rforum does and the rest of your application > could use your own db. I don''t know how the referential checks etc would > work then, tho. > > //jarkko > > -- > Jarkko Laine > http://jlaine.net > > > ------------------------------------------------------------------------ > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails