Hassan Schroeder wrote in post #964841: > On Mon, Nov 29, 2010 at 10:42 AM, Steve Mills <[email protected]> > wrote: > >> Clearly what is required is a single parameter which specifies the >> database, something like, localhost:<uname>@<pw>/depot_v_development > > Uh, "clearly"? Actually, "clearly" that's not true -- and which would be > quite "clear" if you read the documentation for the method in question: > > ActiveRecord::Base.establish_connection > > which, at least in the 2.3.8 version I just glanced at, has examples for > both SQLite and MySQL... > > -- > Hassan Schroeder ------------------------ [email protected] > twitter: @hassan
OK. My apologies. I didn't know where to look, but I've found it now, and as you say, it does have an example for MySQL. Thank you for your patience. -- 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 [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.

