Skip to content

Instantly share code, notes, and snippets.

@MischaTheEvil
Created September 23, 2014 04:27
Show Gist options
  • Save MischaTheEvil/687abfbaf09e7479bbf2 to your computer and use it in GitHub Desktop.
Save MischaTheEvil/687abfbaf09e7479bbf2 to your computer and use it in GitHub Desktop.
Standard instance variables in Rails view(s)
<h1>Debug Info</h1>
<h2>assigns</h2>
<div>
<%= debug(assigns) %>
</div>
<h2>base_path</h2>
<div>
<%#= debug(base_path) %>
</div>
<h2>controller</h2>
<div>
<%= debug(controller) %>
</div>
<h2>cookies</h2>
<div>
<%= debug(cookies) %>
</div>
<h2>flash</h2>
<div>
<%= debug(flash) %>
</div>
<h2>logger</h2>
<div>
<%= debug(logger) %>
</div>
<h2>params</h2>
<div>
<%= debug(params) %>
</div>
<h2>request</h2>
<div>
<%= debug(request) %>
</div>
<h2>response</h2>
<div>
<%= debug(response) %>
</div>
<h2>session</h2>
<div>
<%= debug(session) %>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment