How Rails.env works with EnvironmentInquirer & StringInquirer

Track your progress

Sign in to track your progress and access subscription-only lessons.

Log In

Your Teacher

Hi, I'm Bhumi. I really enjoy teaching and diving deep. I'm writing a new ruby/rails newsletter, One Ruby Question, to do more of that. I've been doing web development for 10 years. Previously staff/lead engineer at a healthtech startup in SF.

About This Episode

Rails.env looks and acts like a Ruby String, but you can call methods with question marks on it. In this lesson, we'll learn how it works using ActiveSupport StringInquirer.

Want to stay up-to-date with Ruby on Rails?

Join 78,890+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more.

    © 2023 GoRails, LLC. All rights reserved.