<% if BetterErrors.binding_of_caller_available? && @frame.frame_binding %>
This is a live shell. Type in here.
<% end %>
<% unless BetterErrors.binding_of_caller_available? %>
Tip: add gem "binding_of_caller"
to your Gemfile to enable the REPL and local/instance variable inspection.
<% end %>
Request info
<% if rails_params %>
Request parameters | <%== inspect_value rails_params %> |
<% end %>
<% if rack_session %>
Rack session | <%== inspect_value rack_session %> |
<% end %>
<% if BetterErrors.binding_of_caller_available? && @frame.frame_binding %>
Local Variables
<% @frame.local_variables.each do |name, value| %>
<%= name %> | <%== inspect_value value %> |
<% end %>
Instance Variables
<% @frame.instance_variables.each do |name, value| %>
<%= name %> | <%== inspect_value value %> |
<% end %>
<% end %>