[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Still new to RoR

slunky

5/3/2006 3:45:00 AM

I'm trying to setup rforum or anything else using a database I know I'm
doing something wrong, but I don't know what. I've followed tutorials,
and tried just setting up rforum but I get this error when trying to
attempt to run it:

/usr/local/lib/ruby/1.8/yaml.rb:133:in `load': syntax error on line 15,
col 3: ` adapter: mysql' (ArgumentError)
from /usr/local/lib/ruby/1.8/yaml.rb:133:in `load'
from /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/initializer.rb:459:in `database_configuration'
from /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/initializer.rb:181:in `initialize_database'
from /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/initializer.rb:84:in `process'
from /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/initializer.rb:42:in `run'
from ./../config/environment.rb:10
from ./dispatch.fcgi:21

What should be in the adapter portion of the database.yml?

--
-slunky
2 Answers

Timothy Goddard

5/3/2006 7:42:00 AM

0

Is that a stray quote after mysql? You just want something like this:

production:
adapter: mysql
database: my_db
host: my_db_server.com
username: John
password: Doe

Repeat for development and test databases.

slunky

5/3/2006 4:18:00 PM

0

_/ Timothy Goddard wrote \_
> Is that a stray quote after mysql? You just want something like this:
>
> production:
> adapter: mysql
> database: my_db
> host: my_db_server.com
> username: John
> password: Doe
>
> Repeat for development and test databases.

I found out it was a problem with the app. I've been having trouble
setting up RForum.

--
-slunky