Guest User

Untitled

a guest
Jun 21st, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. %table
  2. %tr
  3. %th Name
  4. %th Type
  5. %th Total Hits
  6. - for record in @records
  7. %tr{ :class => cycle('odd','even') }
  8. %td= record.name
  9. %td= record.target_type
  10. %td= record.outbound + record.detail + record.custom + record.dynamic
  11.  
  12. @records = Record.all.group_by(&:recorded_on)
  13.  
  14. @records = Record.all.group_by { |record| record.recorded_on.to_date }
  15.  
  16. - @records.each do |records_for_one_day|
  17. = render :partial => 'render_table', :locals => { :records => records_for_one_day }
Add Comment
Please, Sign In to add comment