Skip to content

Instantly share code, notes, and snippets.

@TXDynamics
Created April 23, 2013 20:33
Show Gist options
  • Select an option

  • Save TXDynamics/5447128 to your computer and use it in GitHub Desktop.

Select an option

Save TXDynamics/5447128 to your computer and use it in GitHub Desktop.
Add debugging to our Ruby Application
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/html">
<head>
<title><%= full_title(yield(:title)) %></title>
<%= stylesheet_link_tag "application", :media => "all" %>
<%= javascript_include_tag "application" %>
<%= csrf_meta_tags %>
<%= render 'layouts/shim' %>
</head>
<body>
<%= render 'layouts/header' %>
<div class="container">
<%= yield %>
<%= render 'layouts/footer' %>
<!--Enable Debugging within our application -->
<%= debug(params) if Rails.env.development? %>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment