How can I solve this issue?

I have a script (Attached), which is based on this tutorial:
http://dicom.rubyforge.org/tutorial1.html

When I run the script, I get the following:

C:\Users\Abder-Rahman\Desktop\Research\dicom>ruby dicom_info.rb
C:/Ruby191/lib/ruby/gems/1.9.1/gems/activerecord-3.0.0/lib/active_record/connec
ion_adapters/abstract/connection_specification.rb:54:in
establish_connection': ActiveRecord::AdapterNotSpecified (ActiveRecord::AdapterNotSpecified) from dicom_info.rb:8:in

How can I solve this issue? Thanks.

Abder-Rahman A. wrote:

How can I solve this issue? Thanks.

Look in your config/database.yml. But please, ask questions about Rails
on a Rails mailing list.

Brian C. wrote:

Abder-Rahman A. wrote:

How can I solve this issue? Thanks.

Look in your config/database.yml. But please, ask questions about Rails
on a Rails mailing list.

Thanks @Brian.

I asked the question in the “Ruby” mailing list since as you can see I’m
writing a .rb file and using ActiveRecord within Ruby.

Brian C. wrote:

Abder-Rahman A. wrote:

I asked the question in the “Ruby” mailing list since as you can see I’m
writing a .rb file and using ActiveRecord within Ruby.

And the error you got was very clearly from the ActiveRecord library,
which is part of Rails.

Rails is a web framework written in Ruby. Obviously you will be writing
.rb files when writing applications in Rails.

But Rails is not Ruby, and this mailing list is not about Rails. Many,
perhaps most, of the people on this mailing list are not at all
interested in Rails. Hence questions about Rails are generally
off-topic, given that there are other forums and mailing lists which
are dedicated to Rails.

Good advice here:
How To Ask Questions The Smart Way

Got what you mean.

Thanks.

Abder-Rahman A. wrote:

I asked the question in the “Ruby” mailing list since as you can see I’m
writing a .rb file and using ActiveRecord within Ruby.

And the error you got was very clearly from the ActiveRecord library,
which is part of Rails.

Rails is a web framework written in Ruby. Obviously you will be writing
.rb files when writing applications in Rails.

But Rails is not Ruby, and this mailing list is not about Rails. Many,
perhaps most, of the people on this mailing list are not at all
interested in Rails. Hence questions about Rails are generally
off-topic, given that there are other forums and mailing lists which
are dedicated to Rails.

Good advice here:
http://www.catb.org/~esr/faqs/smart-questions.html#forum