Error report

<% require 'uri' request_uri = @v_env['REQUEST_URI'].match(@v_env['HTTP_HOST']) ? @v_env['REQUEST_URI'].split(@v_env['HTTP_HOST'])[1] : @v_env['REQUEST_URI'] uri_path, uri_query = request_uri.split('?') uri_extra = 'local_request=1' host, port = @v_env['HTTP_HOST'].split(':') go_url_hash = {:host => host, :path => uri_path, :query => uri_query.to_s.empty? ? uri_extra : "#{uri_query}&#{uri_extra}"} go_url_hash.merge!(:port => port) if port.to_i > 0 and port.to_i != 80 go_url = URI::HTTP.build(go_url_hash) %> <% if @v_session['user'] -%> <% end -%>
Message<%= @v_exception.message %>
Location<%= go_url %>
Client IP<%= @v_env['REMOTE_ADDR'] %><%= (@v_env['REMOTE_ADDR'] == "24.85.69.203") ? ' UberOFFICE' : '' %>
Client IP on Forward<%= @v_env['HTTP_X_FORWARDED_FOR'] %><%= (@v_env['HTTP_X_FORWARDED_FOR'] == "24.85.69.203") ? ' UberOFFICE' : '' %>
Date<%= Time.now %>
Controller<%= @v_params.delete('controller') %>
Action<%= @v_params.delete('action') %>
Query<%= @v_env['QUERY_STRING'] %>
Method<%= @v_env['REQUEST_METHOD'] %>
SSL<%= @v_env['SERVER_PORT'].to_i == 443 ? "true" : "false" %>
Agent<%= @v_env['HTTP_USER_AGENT'] %>
User id<%= @v_session['user'].id %>
User name<%= @v_session['user'].fullname %>
User email<%= @v_session['user'].email %>
Registered<%= @v_session['user'].ctime %>

Backtrace

<%= @v_trace.to_a.join("\n") -%>

Params


<% for key, val in @v_params -%>

<%= key %>

<%= val.to_yaml.to_a.join("

\n

    ") %>

<% end if @v_params -%>

Session


<% for key, val in @v_session -%>

<%= key %>

<%= val.to_yaml.to_a.join("

\n

    ") %>

<% end if @v_session -%>

Environment


<% for key, val in @v_env -%> <% end if @v_env -%>
<%= key %>    <%= val %>