Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %table
- %tr
- %th Name
- %th Type
- %th Total Hits
- - for record in @records
- %tr{ :class => cycle('odd','even') }
- %td= record.name
- %td= record.target_type
- %td= record.outbound + record.detail + record.custom + record.dynamic
- @records = Record.all.group_by(&:recorded_on)
- @records = Record.all.group_by { |record| record.recorded_on.to_date }
- - @records.each do |records_for_one_day|
- = render :partial => 'render_table', :locals => { :records => records_for_one_day }
Add Comment
Please, Sign In to add comment