Skip to content

Instantly share code, notes, and snippets.

@cannikin
Created May 19, 2010 16:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cannikin/406496 to your computer and use it in GitHub Desktop.
Save cannikin/406496 to your computer and use it in GitHub Desktop.
- if RAILS_ENV == 'development'
#debug
= link_to_function('Params Trace', "$('debug_params').toggle()")
#debug_params
%table
- params.keys.sort.each do |key|
%tr
%td= key
%td= params[key]
= link_to_function('Session Trace', "$('debug_session').toggle()")
#debug_session(style="display:none")
%table
- session.keys.collect(&:to_s).sort.each do |key|
%tr
%td= key
%td= session[key.to_sym] || 'nil'
= link_to_function('Request Trace', "$('debug_request').toggle()")
#debug_request(style="display:none")
%table
- request.env.keys.sort.each do |key|
%tr
%td= key
%td= request.env[key]
= link_to_function('Omniture Trace', "$('debug_omniture').toggle()")
#debug_omniture
%table
- controller.omniture_raw.each do |prop|
%tr
%td= prop.keys.first
%td= prop.values.first
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment