Skip to content

Instantly share code, notes, and snippets.

@mikebaldry
Created May 3, 2011 11:42
Show Gist options
  • Select an option

  • Save mikebaldry/953198 to your computer and use it in GitHub Desktop.

Select an option

Save mikebaldry/953198 to your computer and use it in GitHub Desktop.
slow view
Rendered reports/filters/date_range.html.haml (32.0ms)
Rendered reports/filters/multi_select.html.haml (48.0ms)
Rendered reports/filters/multi_select.html.haml (10.2ms)
Rendered reports/_table.html.haml (34642.6ms)
Rendered reports/view.html.haml within layouts/application (35273.0ms)
::_table.html.haml::
%table
%thead
%tr
-table.columns.each do |c|
%th= c.title
%tbody
-table.rows.each do |r|
%tr
-r.each_with_index do |v, i|
-column = table.columns[i]
%td
-if column.pops_up?
%a.popup{:href => "##{column.popup_name}", :title => column.popup_title}= v
-else
= v
-if table.summary
%table.summary
%tbody
-table.summary.rows.each do |r|
%tr
%th= r.title
%td= r.value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment