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

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

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

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,651
    Ajith Nair
    Aug 17, 2005
  2. Nobody
    Replies:
    7
    Views:
    428
    Jim Langston
    Jul 4, 2006
  3. Kai Kuehne
    Replies:
    0
    Views:
    314
    Kai Kuehne
    Jul 2, 2007
  4. Prabahar
    Replies:
    2
    Views:
    801
    Prabahar
    Oct 21, 2007
  5. Naina A.
    Replies:
    1
    Views:
    108
    Naina A.
    Apr 29, 2011
Loading...

Share This Page