Accessing URL/URI information in Rails in the environments file?

Posted by tesmar on Stack Overflow See other posts from Stack Overflow or by tesmar
Published on 2010-05-28T20:12:14Z Indexed on 2010/05/28 20:22 UTC
Read the original article Hit count: 191

Filed under:
|

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!

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about url