PDA

View Full Version : Help... Installing Ruby on Rails with mySQL




NRose8989
Jun 27, 2009, 07:49 PM
I'm having serious issues getting Ruby on rails working with mySQL.

I'm tried numerous tutorials to trying to install both mySQL and RoR and getting them to play nice. I did this tutorial here (http://hivelogic.com/articles/view/ruby-rails-leopard) and here (http://hivelogic.com/articles/view/installing-mysql-on-mac-os-x) but for some reason I can't them to work...

after I install everything and get the mysql instance running i do this.

$ cd desktop
$ rails -d mysql demo
$ cd demo
$ ruby script/generate controller say index
$ ruby script/server


now by default when I go to http://localhost:3000/say I should see a little message saying where I am but I keep on getting a error message.

Anyone have a straight forward tutorial to getting ruby on rails and mysql running for 10.5.7?

EDIT: FYI I was trying to use mySQL 5.1.... if that even matters.



foshizzle
Jun 27, 2009, 09:52 PM
check this out

http://sixrevisions.com/web-development/how-to-create-a-blog-from-scratch-using-ruby-on-rails/

NRose8989
Jun 28, 2009, 04:51 AM
check this out

http://sixrevisions.com/web-development/how-to-create-a-blog-from-scratch-using-ruby-on-rails/

Thanks....

Turns out I just had a brain fart and I did have everything set up right but I didn't change the default database from "demo_development" to "test". Basically I was trying to access a database that was non-existent......