# How can I solve this issue?

**URL:** <https://www.ruby-forum.com/t/how-can-i-solve-this-issue/194596>\
**Category:** Ruby\
**Created:** [September 7, 2010, 5:27pm UTC](https://www.ruby-forum.com/t/how-can-i-solve-this-issue/194596 "2010-09-07T17:27:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![swengineer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Post date:** [September 7, 2010, 5:27pm UTC](https://www.ruby-forum.com/t/how-can-i-solve-this-issue/194596/1 "2010-09-07T17:27:39Z")

</div>

I have a script (Attached), which is based on this tutorial:  
[http://dicom.rubyforge.org/tutorial1.html](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.

---

<div class="post-metadata">

**Author:** ![swengineer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Post date:** [September 7, 2010, 7:07pm UTC](https://www.ruby-forum.com/t/how-can-i-solve-this-issue/194596/2 "2010-09-07T19:07:26Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![swengineer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Post date:** [September 7, 2010, 7:11pm UTC](https://www.ruby-forum.com/t/how-can-i-solve-this-issue/194596/3 "2010-09-07T19:11:13Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![swengineer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Post date:** [September 7, 2010, 11:34pm UTC](https://www.ruby-forum.com/t/how-can-i-solve-this-issue/194596/4 "2010-09-07T23:34:35Z")

</div>

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](http://www.catb.org/~esr/faqs/smart-questions.html#forum)

Got what you mean.

Thanks.

---

<div class="post-metadata">

**Author:** ![swengineer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Post date:** [September 7, 2010, 9:56pm UTC](https://www.ruby-forum.com/t/how-can-i-solve-this-issue/194596/5 "2010-09-07T21:56:44Z")

</div>

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](http://www.catb.org/~esr/faqs/smart-questions.html#forum)
