[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Rails config problem

Ian Hobson

1/17/2005 9:03:00 PM

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.rubyon... 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
--
Ian - posting to a Newsgroup. Please remove everything to reply.


1 Answer

Trevor

1/17/2005 9:09:00 PM

0

Ian Hobson wrote:

>
> 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.


Hi Ian,

Welcome to fun times. You may want to try the Rails mailing list at:
rails@lists.rubyonrails.org

See http://lists.rubyonrails.org/mailman/list...