Skip to content

Instantly share code, notes, and snippets.

@chrisjacob
Created August 11, 2013 13:18
Show Gist options
  • Save chrisjacob/6204859 to your computer and use it in GitHub Desktop.
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
<!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