How can I solve this issue?

  • Thread starter Abder-Rahman Ali
  • Start date
A

Abder-Rahman Ali

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 `<main>'

How can I solve this issue? Thanks.

Attachments:
http://www.ruby-forum.com/attachment/5015/dicom_info.rb
 
B

Brian Candler

Abder-Rahman Ali said:
How can I solve this issue? Thanks.

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

Abder-Rahman Ali

Brian said:
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.
 
B

Brian Candler

Abder-Rahman Ali said:
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
 
A

Abder-Rahman Ali

Brian said:
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

Got what you mean.

Thanks.
 

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,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top