On Sep 25, 8:03 am, Al Shox <[EMAIL PROTECTED]> wrote: > Erol Fornoles wrote: > > On Sep 25, 4:27 am, Al Shox <[EMAIL PROTECTED]> wrote: > >> > database? > >> I've grant commands setted into database (with GRANT SELECT.......), 3 > >> Posted viahttp://www.ruby-forum.com/. > > Something like this? > > > ActiveRecord::Base.establish_connection( > > :adapter => "mysql", > > :host => "localhost", > > :username => "admin", > > :password => "password", > > :database => "database" > > ) > > (I've hear about it but..) > You think that I need to create a "singleton" class that have "n" > instances of database?? It's the only solution?? > > Please help me with code samples!! This isn't a trivial project and I > need something concrete, otherwise I need to take another language > solutions.. and I really don't want!! > -- > Posted viahttp://www.ruby-forum.com/.
Not necessarily. How many kinds of db user accounts do you have? Are they fixed, or do you have a variable number of them? --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

