Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6973895
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:10:02+00:00 2026-05-27T17:10:02+00:00

I am using the ruby ‘configuration’ gem for a project. Currently, I have an

  • 0

I am using the ruby ‘configuration’ gem for a project. Currently, I have an app class in my project module, and to get configuration, calling App.config returns the Configuration object.

In my classes to access a nested config variable, I would call App.config.rabbitmq.host. However, this isn’t working because rabbitmq is returning a hash.

base = Configuration.for('default') {
        rabbitmq {
          host 'localhost'
          port 5672
          username 'guest'
          password 'guest'
          vhost '/'
        }
}

That is how my configuration looks. It is inherited by the actual configuration object i am using:

Configuration.for('development', base) {
}

What am I doing wrong? I required the configuration gem in the classes where I am accessing the nested config.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T17:10:02+00:00Added an answer on May 27, 2026 at 5:10 pm

    Please don’t get me wrong but what you’re doing wrong is that you’re using a gem for such a simple problem. Why don’t you try to load a simple hash? I know I really didn’t answer your specific question. But believe me, reducing external dependencies for simple problems will save you and your app for little problems in the future.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using ruby regexp I get the following results: >> 'foobar'[/o+/] => oo >> 'foobar'[/o*/]
I have been using Ruby for a while now and I find, for bigger
I am using ruby on rails with a MySQL backend. I have a table
Using Ruby on Rails, if I do a gem help install a part of
I'm using ruby's ai4r gem, building a neural network. Version 1.1 of the gem
Using Ruby on Rails 3, I have a page with a list of comments
Using Ruby and Haml, I have a property which is cost. I believe (im
Using Ruby's ri tool can I get a list of classes that implement the
Using Ruby on Rails, I have created a blog. The blog has posts, and
I'm using Ruby's CSV library to parse some CSV. I have a seemingly well-formed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.