Rails config problem

I

Ian Hobson

Hi,

help - I'm trying to set up ruby on rails (via detours through Apache,
PHP, MySQL, phpMyAdmin, Ruby and Apache configuration etc.). All on
windows 2000.

So far, Apache2, Ruby, SCITE, PHP5 MSQ, and phpMyAdmin all appear
to work fine.

It took changing the password to password_old and moving two .dll files
into the winnt/system and winnt/system32 directories, but I got there!

I've got to the "your on Ruby on Rails" welcome screen and am working
down the instructions.

I get stuck at "4 See all the tests run by running rake."

If I run rake in my d:\rails directory I get a whole slew of error
messages I can't make head nor tail of. It says....

Loaded suite [test/unit/accont_mailer_test.rb,
test/unit/account_mailer_test.rb,
test/unit/account_test.rb]
Started
FE
Finished in 0.047 seconds.

1) Failure:
default_test(AccountMailerTest) [d:/ruby/bin/testrb:5]:
No tests were specified.

2) Error:
test_truth(AccountTest):
LoadError: No such file to load -- mysql
d:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.4.0/lib/active_record/c
onnecti
on_adapters/mysql_adapter.rb:17:in `mysql_connection'
d:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.4.0/lib/active_record/c
onnecti
on_adapters/abstract_adapter.rb:148:in `send'
d:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.4.0/lib/active_record/c
onnecti
on_adapters/abstract_adapter.rb:148:in `connection='
d:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.4.0/lib/active_record/c
onnecti
on_adapters/abstract_adapter.rb:112:in `retrieve_connection'
d:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.4.0/lib/active_record/b
ase.rb:
196:in `connection'
d:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.4.0/lib/active_record/f
ixtures
rb:154:in `create_fixtures'
d:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.4.0/lib/active_record/f
ixtures
rb:147:in `instantiate_fixtures'
d:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.4.0/lib/active_record/f
ixtures
rb:359:in `instantiate_fixtures'
d:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.4.0/lib/active_record/f
ixtures
rb:344:in `setup'

2 tests, 1 assertions, 1 failures, 1 errors
rake aborted!

What does this mean?
How can I go back to a clean state?

I tried the Todo tutorial on http://documentation.rubyonrails.com/ but I
get 500 errors from the server, complete with...

Change this error message for exceptions thrown outside of an action
(like in Dispatcher setups or broken Ruby code) in public/500.html

So I guess it is ruby not apache that is complaining.

If anyone has a clue, please share it - I'm clue-less at the moment.

Regards

Ian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,074
Latest member
StanleyFra

Latest Threads

Top