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 9213351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:43:41+00:00 2026-06-18T01:43:41+00:00

Suppose you have a similar YAML configuration file: defaults: &defaults # registration form birth_date:

  • 0

Suppose you have a similar YAML configuration file:

defaults: &defaults
  # registration form
  birth_date: true
  address: true
  zip: true
  city: true
  state: true
  # other stuff
  send_email_notification_to_users: true

production:
  <<: *defaults

development:
  <<: *defaults

test:
  <<: *defaults

which is loaded in a similar way to how it is explained in Railcast #85:
http://railscasts.com/episodes/85-yaml-configuration-file

Suppose you need to test how the application performs with different settings, how would you do that?

With Django it is possible to change the settings temporarily during unit tests:
https://docs.djangoproject.com/en/dev/topics/testing/overview/#overriding-settings

Is it possible to do something similar with Rails?

  • 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-06-18T01:43:42+00:00Added an answer on June 18, 2026 at 1:43 am

    In case you implemented it exactly like it is explained in Railscast #85, simply assign the new value like so:

    APP_CONFIG['perform_authentication'] = false
    # or
    APP_CONFIG['my_fancy_key'] = 'my fancy value'
    

    Keep in mind that the value will not be changed back automatically after your test case finished, so it will remain valid for all subsequent test cases.

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

Sidebar

Related Questions

Suppose I have a file similar to the following: 123 123 234 234 123
I suppose similar problem would have been discussed here, but I couldn't find it.
Suppose I have a class similar to the following: #include <vector> class element {
Suppose I have a context that is configured similar to: Establish context = ()
suppose i have xml similar to the below <?xml version=1.0 encoding=UTF-8?> <validate status=yes last_updated=2009-07-05T11:31:12>
Suppose I have a file test.c containing the following: // line 1 // line
Suppose to have the code #include <iostream> struct A{ int y; int& x; A():y(0),x(y){}
Suppose I have an array similar to this (actual values probably will not be
Suppose I have a class class Foo { public: ~Foo() { delete &_bar; }
Suppose I have an application that have similar buttons named button0, button1, etc, up

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.