Forum: Ruby on Rails First Day issue

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
ReDD (Guest)
on 2007-03-22 22:06
(Received via mailing list)
I'll start off saying I don't know much at all about RoR...today is my
first day attempting.

I have been going through this tutorial (but I'm doing it on linux)

http://www.onlamp.com/pub/a/onlamp/2005/01/20/rail...

and get this when i try to view the  /recipe/new page listed:

 NameError in RecipeController#new

uninitialized constant Mysql

RAILS_ROOT: script/../config/..
Application Trace | Framework Trace | Full Trace


This error occured while loading the following files:
   active_record/mysql.rb

Request

Parameters: None

Show session dump

---
flash: !ruby/hash:ActionController::Flash::FlashHash {}

Response
Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"}


I'm obviously missing a mysql.rb, but googling pulls only 1 unresolved
forum post...any Ideas what I'm missing? Is there some mysql module I
didn't load? Thanks in advance!
Luciano R. (Guest)
on 2007-03-22 22:14
(Received via mailing list)
I don't know which distro you're using, but there should my a package
to provide MySQL bindings to Ruby. That's probably what is missing in
your setup.

Cheers,

Luciano
Luciano R. (Guest)
on 2007-03-22 22:16
(Received via mailing list)
# /my/be/ makes my previous message more readable:

I don't know which distro you're using, but there should be a package
to provide MySQL bindings to Ruby. That's probably what is missing in
your setup.

Cheers,

Luciano
ReDD (Guest)
on 2007-03-22 22:28
(Received via mailing list)
apt-get install libdbd-mysql-ruby1.8

Fixed it! (well now I get access denied but thats an issue in my .yml
file I'm sure)

Thanks alot.
This topic is locked and can not be replied to.