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

Reply via email to