Can anyone tell me how to get line breaks in the debug(session)
output…
application.html.erb:
<%= full_title(yield(: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) %>
<%= render 'layouts/navigation' %>
<%= render 'layouts/messages' %>
<%= render 'layouts/black_menubar' %>
<%= yield %>
</div> <!-- end of .container -->
<%= debug(params) if Rails.env.development? %>
<%= debug(session) if Rails.env.development? %>
</div>
</div> <!--! end of #main -->
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.
debug(session) even
ignores formatting like trying to put it into a bootstrap column…
<%= debug(params) if Rails.env.development? %>
<%= debug(session) if Rails.env.development? %>
Thanks