Created
August 11, 2013 13:18
-
-
Save chrisjacob/6204859 to your computer and use it in GitHub Desktop.
Rails pretty print Request.env in your view template
Thx: https://www.ruby-forum.com/topic/129732
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<%= yield %> | |
<%= debug(PP.pp(request.env, "")) if Rails.env.development? %> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment