Skip to content

Instantly share code, notes, and snippets.

@ohammersmith
Created March 10, 2009 15:33
Show Gist options
  • Select an option

  • Save ohammersmith/76940 to your computer and use it in GitHub Desktop.

Select an option

Save ohammersmith/76940 to your computer and use it in GitHub Desktop.
<% if ENV["RAILS_ENV"] == "development" %>
<div id="debug">
<a href="#" onclick="Element.toggle('params_debug_info'); return false">params</a> | <a href="#" onclick="Element.toggle('session_debug_info'); return false">sessions</a>
<fieldset id="params_debug_info" class="debug_info" style="display:none">
<legend>params</legend> <%= debug(params) %>
</fieldset>
<fieldset id="session_debug_info" class="debug_info" style="display:none">
<legend>session</legend> <%= debug(session) %>
</fieldset>
</div><% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment