Skip to content

Instantly share code, notes, and snippets.

<%
# This is the same as the stock _environment.rhtml, but with removal of some keys
# Keys that could contain sensitive data, like cc_number, and/or are redundant with _request.rhtml
request_parameters = %w{action_controller.request.request_parameters rack.request.form_hash rack.request.form_vars rack.routing_args}
# Keys that are generally not useful, since they just spit out standard inspections with class name and address
inspected = %w{action_controller.rescue.request action_controller.rescue.response rack.errors rack.input}
# includes the secret, which shouldn't be logged