Skip to content

Commit

Permalink
Show debug info when in the development Rails environment, and format…
Browse files Browse the repository at this point in the history
… it nicely.
  • Loading branch information
amonat committed May 3, 2012
1 parent e59cf25 commit 47e1afe
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions app/assets/stylesheets/custom.css.scss
Expand Up @@ -4,6 +4,12 @@

$grayMediumLight: #eaeaea;

@mixin box_sizing {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}

/* universal */

html {
Expand Down Expand Up @@ -100,3 +106,13 @@ footer {
}
}
}

/* miscellaneous */

.debug_dump {
clear: both;
float: left;
width: 100%;
margin-top: 45px;
@include box_sizing;
}
1 change: 1 addition & 0 deletions app/views/layouts/application.html.erb
Expand Up @@ -12,6 +12,7 @@
<div class="container">
<%= yield %>
<%= render 'layouts/footer' %>
<%= debug(params) if Rails.env.development? %>
</div>
</body>
</html>

0 comments on commit 47e1afe

Please sign in to comment.