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

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/0feed25cd4890fb3a93237e908ede6d1%40ruby-forum.com?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to