Can anyone tell me how to get line breaks in the debug(session) output...
application.html.erb:
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title><%= full_title(yield(:title)) %></title>
<meta name="description" content="<%= content_for?(:description) ? yield(:description) : "StudyAide" %>"> <%= stylesheet_link_tag "application", :media => "all" %> <%= javascript_include_tag "application" %> <%= csrf_meta_tags %> <%= yield(:head) %> </head>
<body class="<%= controller_name %> <%= action_name %> gray"> <header class="navbar navbar-fixed-top"> <nav class="navbar-inner"> <div class="container"> <%= render 'layouts/navigation' %> </div> </nav> </header> <div id="main" role="main"> <div class="container" id="main_container"> <div class="black" id="testblack"> <div class="row"> <div class="span12"> <%= render 'layouts/messages' %> <%= render 'layouts/black_menubar' %> <%= yield %> </div> </div> </div> <footer class="span11"> <%= render 'layouts/footer' %> </footer>
</div> <!-- end of .container --> <%= debug(params) if Rails.env.development? %> <%= debug(session) if Rails.env.development? %> </div> </div> <!--! end of #main --> </body> </html>
The output is one long line that reaches well past the end of the page and I have to scroll horizontally the see it all. debug(params) on the other hand is formatted vertically and much easier to read.
Thanks