Re: multiple database users for rails app?

Francois Beausoleil
Mon, 22 Jan 2007 22:20:10 -0000

Hello Donald,

2007/1/22, Ball, Donald A Jr (Library)
<donald.ball@nashville.gov>:
> Hey guys. Per my IT department's policies, I need to have two separate
> database users for my rails database - one for public intarweb
> functionality, one for authenticated users' functionality. The naive
way
> to accomodate this would be to break the app up into two separate apps,
> but since they share the same models and resources, DRY suggests this
> isn't the proper thing to do.

I have done something similar previously.  I have a site which has a
backend and frontend.  The backend has admin functionnality, while the
frontend has different views.

I shared the models using svn:externals, but you could do the same
using a plugin or piston.

Hope that helps !
--
François Beausoleil
http://blog.teksol.info/
http://piston.rubyforge.org/

--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com