views:

14

answers:

1

Hi all,

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!

A: 

Well the environment files are loaded before any requests are made, so ActionController::Request doesn't exist at that time. What do you need to set and why (there may be other solutions to this)?

Jakub Hampl