How can I solve this issue?

Discussion in 'Ruby' started by Abder-Rahman Ali, Sep 7, 2010.

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

    --
    Posted via http://www.ruby-forum.com/.
     
    Abder-Rahman Ali, Sep 7, 2010
    #1
    1. Advertisements

  2. Abder-Rahman Ali 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.
    --
    Posted via http://www.ruby-forum.com/.
     
    Brian Candler, Sep 7, 2010
    #2
    1. Advertisements

  3. Brian Candler wrote:
    > Abder-Rahman Ali 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.
    --
    Posted via http://www.ruby-forum.com/.
     
    Abder-Rahman Ali, Sep 7, 2010
    #3
  4. Abder-Rahman Ali 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
    --
    Posted via http://www.ruby-forum.com/.
     
    Brian Candler, Sep 7, 2010
    #4
  5. Brian Candler wrote:
    > Abder-Rahman Ali 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


    Got what you mean.

    Thanks.

    --
    Posted via http://www.ruby-forum.com/.
     
    Abder-Rahman Ali, Sep 7, 2010
    #5
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ajith Nair
    Replies:
    0
    Views:
    1,774
    Ajith Nair
    Aug 17, 2005
  2. Miguel Dias Moura

    How can i solve this problem?

    Miguel Dias Moura, Dec 10, 2004, in forum: ASP .Net
    Replies:
    9
    Views:
    1,699
    Miguel Dias Moura
    Dec 10, 2004
  3. =?Utf-8?B?S3Vt?=
    Replies:
    1
    Views:
    942
    Peter Blum
    Jun 8, 2005
  4. Kaidi
    Replies:
    1
    Views:
    1,112
    William Brogden
    Jan 16, 2004
  5. Nobody
    Replies:
    7
    Views:
    502
    Jim Langston
    Jul 4, 2006
  6. Kai Kuehne
    Replies:
    0
    Views:
    427
    Kai Kuehne
    Jul 2, 2007
  7. Prabahar
    Replies:
    2
    Views:
    978
    Prabahar
    Oct 21, 2007
  8. Naina A.
    Replies:
    1
    Views:
    153
    Naina A.
    Apr 29, 2011
Loading...