Rails Headers
You can access header values from rails from the request.env hash. request.env contains a lot of other non HTTP header values. The header name is a bit transformed too:
- prepended with HTTP_
- converted to uppercase
- dashes converted to undersocres
- … more?
Example:
1 |
|
can be accessed in rails with:
1 |
|