How Rails.env works with EnvironmentInquirer & StringInquirer

October 23, 2023

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 83,453+ developers who get early access to new tutorials, screencasts, articles, and more.

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