I would like to access the ActionController::Request from within the environments/development.rb file so that I can set a global variable there depending on the domain name. Any ideas?
Thank you!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
Well the environment files are loaded before any requests are made, so
ActionController::Requestdoesn’t exist at that time. What do you need to set and why (there may be other solutions to this)?