2

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)

4

1 回答 1

1

如果有人正在寻找这个问题的答案。

虽然这只是一个概述,但请参阅James Edward Gray 的此演示文稿中的提示 21 。它从高层次上介绍了一种为每个用户创建和使用不同数据库的方法。这是一个很长的演示文稿,这个技巧大约进行了三分之一。

这可能足以为您指明正确的方向。

于 2012-04-30T01:44:06.620 回答