rubyTrials

A way to keep track of breakthroughs I've made in Ruby and Ruby on Rails.

My Photo
Name:
Location: Cadillac, Michigan, United States

Thursday, April 28, 2005

Working with Rails

A quick note to self (pun intended). In app/controllers/your_controller_here.rb, place this code:



self.establish_connection(
:adapter=>"mysql",
:host=>"localhost",
:username=>"your_username_here",
:password=>"your_password_here",
:database=>"your_database_here"
)

To override the default "'root'@'localhost' identified by '';" when connecting to your db.