Re: multiple database users for rails app?

Drew Olson
Mon, 22 Jan 2007 22:19:05 -0000

> Ideally, I''d like to have two separate database.yml files, and
choose
> between them on a controller-by-controller basis. If this is a good
> strategy, how might I go about doing it? If not, how would y''all
suggest
> I structure my app?
>
> - donald

Why not have a log-in action and if a user is successfully
authenticated, store something in the session. Then you can check for
the existence of this session variable and act accordingly.

--
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