Skip to content

Commit

Permalink
All output is raw
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed Jan 22, 2010
1 parent 5e54d13 commit d68b14b
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<%= @backtrace.join "\n" %>
<%=raw @backtrace.join "\n" %>
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<% filtered_env = @request.filtered_env -%>
<% max = filtered_env.keys.max { |a, b| a.length <=> b.length } -%>
<% filtered_env.keys.sort.each do |key| -%>
* <%= "%-*s: %s" % [max.length, key, filtered_env[key].to_s.strip] %>
* <%=raw "%-*s: %s" % [max.length, key, filtered_env[key].to_s.strip] %>
<% end -%>

* Process: <%= $$ %>
* Server : <%= `hostname -s`.chomp %>
* Process: <%=raw $$ %>
* Server : <%=raw `hostname -s`.chomp %>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
* URL : <%= @request.url %>
* IP address: <%= @request.remote_ip %>
* Parameters: <%= @request.fitered_params.inspect %>
* Rails root: <%= Rails.root %>
* URL : <%=raw @request.url %>
* IP address: <%=raw @request.remote_ip %>
* Parameters: <%=raw @request.fitered_params.inspect %>
* Rails root: <%=raw Rails.root %>
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
* session id: <%= @request.session['session_id'].inspect %>
* data: <%= PP.pp @request.session.inspect.gsub(/\n/, "\n ").strip %>
* session id: <%=raw @request.session['session_id'].inspect.html_safe %>
* data: <%=raw PP.pp @request.session.inspect.gsub(/\n/, "\n ").strip.html_safe %>
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
-------------------------------
<%= title.to_s.humanize %>:
<%=raw title.to_s.humanize %>:
-------------------------------
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
A <%= @exception.class %> occurred in <%= @controller.controller_name %>#<%= @controller.action_name %>:

<%= @exception.message %>
<%= @backtrace.first %>
<%=raw @exception.message %>
<%=raw @backtrace.first %>
<%= @sections.map { |section|
<%=raw @sections.map { |section|
summary = render(section).strip
unless summary.blank?
title = render("title", :locals => { :title => section }).strip
Expand Down

0 comments on commit d68b14b

Please sign in to comment.