Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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