简体   繁体   中英

Multiple database users On a Rails 3 app

i want to know how do i set an http log in form to send that user and password to the database.yml file, so with that user and password, log into the database.

This because i have multiple database users with different privileges.

thanks for any help you reply to me.

Database is Postgresql (if it matters, dont think so but i bet maybe someone will ask)

In case anyone is looking for an answer to this question.

Although it is only an overview see tip 21 from this presentation from James Edward Gray . It walks through, at a high level, an approach to creating and using a different database for each user. It's a long presentation, this tip is about a third of the way through.

It may be enough to point you in the right direction.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM