Rails Request Environment Variables
You are an internet savvy Starter. So, I hope you’re paying attention to your users somehow! Well, there’s gonna come a time when you’ll need to do some analytic gathering yourself. Rails environment variables can come in handy then.
Using Rails Request.env
Here’s an example of using the Rails request.env object:
Rails Request.env List
Request.env is a Rails object that contains information on your visitor’s environment (e.g. browser, referrer) and information on your server’s environment. The request.env object is a key/value pair Ruby array. Here is the list of the environment variables you have access to:
Good Luck Beloved! Have Fun!
Credits to: TVD