query_report 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. data/README.md +1 -1
  2. data/app/helpers/query_report_helper.rb +3 -12
  3. data/lib/query_report/engine.rb +7 -1
  4. data/lib/query_report/helper.rb +1 -1
  5. data/lib/query_report/version.rb +1 -1
  6. data/test/dummy/app/controllers/invoices_controller.rb +2 -4
  7. data/test/dummy/config/routes.rb +1 -2
  8. data/test/dummy/log/development.log +895 -0
  9. data/test/dummy/tmp/miniprofiler/mp_timers_435onnqlkhcky6yip9mj +0 -0
  10. data/test/dummy/tmp/miniprofiler/mp_timers_5a5gcp8rj2g7cjlrh11r +0 -0
  11. data/test/dummy/tmp/miniprofiler/mp_timers_5n9tm06nu8wtqem8jd9s +0 -0
  12. data/test/dummy/tmp/miniprofiler/mp_timers_83yh2jf8w7ouqnuqevws +0 -0
  13. data/test/dummy/tmp/miniprofiler/mp_timers_9scoumsixeymou0wyqwf +0 -0
  14. data/test/dummy/tmp/miniprofiler/mp_timers_9xq47956uczidwr4xqs2 +0 -0
  15. data/test/dummy/tmp/miniprofiler/mp_timers_a4mj9799k6k4r6jruzj7 +0 -0
  16. data/test/dummy/tmp/miniprofiler/mp_timers_azffwngwstpj3o7g7zaj +0 -0
  17. data/test/dummy/tmp/miniprofiler/mp_timers_bsifeckwtz6lhx8rqwgz +0 -0
  18. data/test/dummy/tmp/miniprofiler/mp_timers_c27pz5f69skbkwfrnlr5 +0 -0
  19. data/test/dummy/tmp/miniprofiler/mp_timers_dbth1ye234719bbg3xjq +0 -0
  20. data/test/dummy/tmp/miniprofiler/mp_timers_ech68w7azvs6whb6s88w +0 -0
  21. data/test/dummy/tmp/miniprofiler/mp_timers_gdb6sz9j5g8pyrobpse2 +0 -0
  22. data/test/dummy/tmp/miniprofiler/mp_timers_gnj8jwxqjl0ocjfopzmt +0 -0
  23. data/test/dummy/tmp/miniprofiler/mp_timers_hzjksutah5t2nkoe5gye +0 -0
  24. data/test/dummy/tmp/miniprofiler/mp_timers_ijm30kq0c4jrpb5coyiz +0 -0
  25. data/test/dummy/tmp/miniprofiler/mp_timers_ixj6jdcp3o0pc4vzdjoo +0 -0
  26. data/test/dummy/tmp/miniprofiler/mp_timers_l2w9vljbeofwmhmxn9lv +0 -0
  27. data/test/dummy/tmp/miniprofiler/mp_timers_meafgmjq07s2xlkm4ney +0 -0
  28. data/test/dummy/tmp/miniprofiler/mp_timers_mxejnh24sg011tpzlq7l +0 -0
  29. data/test/dummy/tmp/miniprofiler/mp_timers_nlvpu6hg03b8cue75kkc +0 -0
  30. data/test/dummy/tmp/miniprofiler/mp_timers_ns57exo8aheow6jngknj +0 -0
  31. data/test/dummy/tmp/miniprofiler/mp_timers_pq8a5s9f7o747x14bip8 +0 -0
  32. data/test/dummy/tmp/miniprofiler/mp_timers_pvxfsf8tdy3tk7twydyc +0 -0
  33. data/test/dummy/tmp/miniprofiler/mp_timers_t5zt24mkmoq4kpcvvlrp +0 -0
  34. data/test/dummy/tmp/miniprofiler/mp_timers_tesee62zyykaxw8dbmq1 +0 -0
  35. data/test/dummy/tmp/miniprofiler/mp_timers_wbiyljqrnox89js4m0at +0 -0
  36. data/test/dummy/tmp/miniprofiler/mp_timers_ywg973w6dqfz9nuj5qio +0 -0
  37. data/test/dummy/tmp/miniprofiler/mp_views_127.0.0.1 +0 -0
  38. metadata +58 -83
data/README.md CHANGED
@@ -16,7 +16,7 @@ concentrate in a report is the query and filter.
16
16
  Query report is tested with Rails 3. You can add it to your Gemfile with:
17
17
 
18
18
  ```ruby
19
- gem 'query_report'
19
+ gem "query_report", "~> 1.0.0"
20
20
  ```
21
21
 
22
22
  Run the bundle command to install it.
@@ -3,9 +3,8 @@ require 'query_report/errors'
3
3
  module QueryReportHelper
4
4
  def query_report_render_filter(filter, comparator)
5
5
  hint = comparator.name
6
- #search_key = comparator.search_key
7
- search_tag_name = comparator.search_tag_name #"#{filter.params_key}[#{search_key}]"
8
- value = comparator.param_value #params[filter.params_key] ? params[filter.params_key][comparator.search_key] : comparator.default
6
+ search_tag_name = comparator.search_tag_name
7
+ value = comparator.param_value
9
8
 
10
9
  method_name = :"query_report_#{filter.type.to_s}_filter"
11
10
  if main_app.respond_to? method_name
@@ -18,14 +17,6 @@ module QueryReportHelper
18
17
  end
19
18
 
20
19
  def export_report_url_with_format(format)
21
- url = request.url
22
- if url.match(/(\.\w*\?)/)
23
- url = url.gsub(/(\?)/, ".#{format}?")
24
- elsif url.match(/(\?)/)
25
- url = url.gsub(/(\?)/, ".#{format}?")
26
- else
27
- url = "#{url}.#{format}"
28
- end
29
- url.gsub(/format=(\w*)/, 'format=#{format}')
20
+ url_for(params.merge(format: format))
30
21
  end
31
22
  end
@@ -1,4 +1,10 @@
1
+ require 'ransack'
2
+ require 'kaminari'
3
+ require 'google_visualr'
4
+ require 'prawn'
5
+ require 'gruff'
6
+
1
7
  module QueryReport
2
8
  class Engine < ::Rails::Engine
3
9
  end
4
- end
10
+ end
@@ -32,7 +32,7 @@ module QueryReport
32
32
  @template_class ||= options[:template_class].to_s.constantize
33
33
  return @template_class
34
34
  end
35
- reurn QueryReport::ReportPdf
35
+ return QueryReport::ReportPdf
36
36
  end
37
37
 
38
38
  def generate_csv_for_report(records)
@@ -1,3 +1,3 @@
1
1
  module QueryReport
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -7,12 +7,10 @@ class InvoicesController < ApplicationController
7
7
  def index
8
8
  @invoices = Invoice.scoped
9
9
 
10
- reporter(@invoices, pdf_template_class: '') do
10
+ reporter(@invoices) do
11
11
  filter :title, type: :text
12
12
  filter :created_at, type: :date, default: [5.months.ago.to_date.to_s(:db), 1.months.from_now.to_date.to_s(:db)]
13
- filter :paid, type: :boolean, default: false do |query, paid|
14
- query.where(paid: paid)
15
- end
13
+ filter :paid, type: :boolean
16
14
 
17
15
  column :title do |invoice|
18
16
  link_to invoice.title, invoice
@@ -1,7 +1,6 @@
1
1
  Dummy::Application.routes.draw do
2
+ root :to => 'invoices#index'
2
3
  resources :invoices
3
-
4
-
5
4
  resources :users
6
5
 
7
6
 
@@ -30611,3 +30611,898 @@ Processing by InvoicesController#index as PDF
30611
30611
  Rendered text template (0.0ms)
30612
30612
  Sent data (1.9ms)
30613
30613
  Completed 200 OK in 3035ms (Views: 1.8ms | ActiveRecord: 0.8ms)
30614
+ Connecting to database specified by database.yml
30615
+
30616
+
30617
+ Started GET "/" for 127.0.0.1 at 2013-08-29 09:55:21 +0600
30618
+ Processing by InvoicesController#index as HTML
30619
+  (0.4ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30620
+  (0.3ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30621
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30622
+ CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30623
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30624
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30625
+ Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (7.4ms)
30626
+ Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (2.1ms)
30627
+ Invoice Load (0.5ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000')) LIMIT 25 OFFSET 0
30628
+  (0.3ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30629
+ Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (125.2ms)
30630
+ Completed 200 OK in 450ms (Views: 211.1ms | ActiveRecord: 5.2ms)
30631
+
30632
+
30633
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-08-29 09:55:22 +0600
30634
+ Served asset /application.css - 200 OK (8ms)
30635
+
30636
+
30637
+ Started GET "/assets/invoices.css?body=1" for 127.0.0.1 at 2013-08-29 09:55:22 +0600
30638
+ Served asset /invoices.css - 200 OK (2ms)
30639
+
30640
+
30641
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-08-29 09:55:22 +0600
30642
+ Served asset /scaffold.css - 200 OK (1ms)
30643
+
30644
+
30645
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-08-29 09:55:22 +0600
30646
+ Served asset /jquery.js - 200 OK (8ms)
30647
+
30648
+
30649
+ Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2013-08-29 09:55:22 +0600
30650
+ Served asset /users.css - 200 OK (5ms)
30651
+
30652
+
30653
+ Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2013-08-29 09:55:22 +0600
30654
+ Served asset /users.js - 200 OK (2ms)
30655
+
30656
+
30657
+ Started GET "/assets/invoices.js?body=1" for 127.0.0.1 at 2013-08-29 09:55:22 +0600
30658
+ Served asset /invoices.js - 200 OK (2ms)
30659
+
30660
+
30661
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-08-29 09:55:22 +0600
30662
+ Served asset /jquery_ujs.js - 200 OK (3ms)
30663
+
30664
+
30665
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-08-29 09:55:22 +0600
30666
+ Served asset /application.js - 200 OK (10ms)
30667
+
30668
+
30669
+ Started GET "/" for 127.0.0.1 at 2013-08-29 09:57:45 +0600
30670
+ Processing by InvoicesController#index as HTML
30671
+  (0.4ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30672
+  (0.3ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30673
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30674
+ CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30675
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30676
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30677
+ Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (2.6ms)
30678
+ Invoice Load (1.1ms) SELECT "invoices".* FROM "invoices" 
30679
+ Invoice Load (1.1ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30680
+ Invoice Load (0.5ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000')) LIMIT 25 OFFSET 0
30681
+ Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (1289.3ms)
30682
+ Completed 500 Internal Server Error in 1315ms
30683
+
30684
+ ActionView::Template::Error (undefined local variable or method `path' for #<#<Class:0x007ff134736978>:0x007ff1348e1fe8>):
30685
+ 1: <%= render :partial => "query_report/search", locals: {report: @report} %>
30686
+ 2: <br/>
30687
+ 3:
30688
+ 4: <%= link_to_download_report_pdf %>
30689
+ 5: <%= link_to_download_report_csv %>
30690
+ 6:
30691
+ 7: <% if @report.has_chart? and @report.enable_chart? and @report.chart_on_web? %>
30692
+ app/controllers/invoices_controller.rb:10:in `index'
30693
+
30694
+
30695
+ Rendered /usr/local/rvm/gems/ruby-1.9.3-p429/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (2.9ms)
30696
+ Rendered /usr/local/rvm/gems/ruby-1.9.3-p429/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (2.4ms)
30697
+ Rendered /usr/local/rvm/gems/ruby-1.9.3-p429/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (17.7ms)
30698
+
30699
+
30700
+ Started GET "/" for 127.0.0.1 at 2013-08-29 09:58:01 +0600
30701
+ Processing by InvoicesController#index as HTML
30702
+  (0.3ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30703
+  (0.3ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30704
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30705
+ CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30706
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30707
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30708
+ Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (2.3ms)
30709
+ Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (1.3ms)
30710
+ Invoice Load (0.5ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000')) LIMIT 25 OFFSET 0
30711
+  (0.2ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30712
+ Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (39.3ms)
30713
+ Completed 200 OK in 68ms (Views: 45.4ms | ActiveRecord: 2.0ms)
30714
+
30715
+
30716
+ Started GET "/assets/invoices.css?body=1" for 127.0.0.1 at 2013-08-29 09:58:02 +0600
30717
+ Served asset /invoices.css - 200 OK (0ms)
30718
+
30719
+
30720
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-08-29 09:58:02 +0600
30721
+ Served asset /application.css - 200 OK (0ms)
30722
+
30723
+
30724
+ Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2013-08-29 09:58:02 +0600
30725
+ Served asset /users.css - 200 OK (0ms)
30726
+
30727
+
30728
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-08-29 09:58:02 +0600
30729
+ Served asset /jquery_ujs.js - 200 OK (0ms)
30730
+
30731
+
30732
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-08-29 09:58:02 +0600
30733
+ Served asset /scaffold.css - 200 OK (2ms)
30734
+
30735
+
30736
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-08-29 09:58:02 +0600
30737
+ Served asset /jquery.js - 200 OK (0ms)
30738
+
30739
+
30740
+ Started GET "/assets/invoices.js?body=1" for 127.0.0.1 at 2013-08-29 09:58:02 +0600
30741
+ Served asset /invoices.js - 200 OK (0ms)
30742
+
30743
+
30744
+ Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2013-08-29 09:58:02 +0600
30745
+ Served asset /users.js - 200 OK (0ms)
30746
+
30747
+
30748
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-08-29 09:58:02 +0600
30749
+ Served asset /application.js - 200 OK (1ms)
30750
+
30751
+
30752
+ Started GET "/?format=" for 127.0.0.1 at 2013-08-29 09:58:05 +0600
30753
+ Processing by InvoicesController#index as
30754
+  (0.4ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30755
+  (0.3ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30756
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30757
+ CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30758
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30759
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30760
+ Completed 406 Not Acceptable in 18ms (ActiveRecord: 0.6ms)
30761
+
30762
+
30763
+ Started GET "/" for 127.0.0.1 at 2013-08-29 09:58:30 +0600
30764
+ Processing by InvoicesController#index as HTML
30765
+  (0.4ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30766
+  (0.3ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30767
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30768
+ CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30769
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30770
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30771
+ Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (2.6ms)
30772
+ Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (1.3ms)
30773
+ Invoice Load (0.4ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000')) LIMIT 25 OFFSET 0
30774
+  (0.3ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30775
+ Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (67.8ms)
30776
+ Completed 200 OK in 100ms (Views: 77.3ms | ActiveRecord: 2.2ms)
30777
+
30778
+
30779
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-08-29 09:58:30 +0600
30780
+ Served asset /application.css - 304 Not Modified (9ms)
30781
+
30782
+
30783
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-08-29 09:58:30 +0600
30784
+ Served asset /jquery.js - 304 Not Modified (3ms)
30785
+
30786
+
30787
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-08-29 09:58:30 +0600
30788
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
30789
+
30790
+
30791
+ Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2013-08-29 09:58:30 +0600
30792
+ Served asset /users.css - 304 Not Modified (0ms)
30793
+
30794
+
30795
+ Started GET "/assets/invoices.css?body=1" for 127.0.0.1 at 2013-08-29 09:58:30 +0600
30796
+ Served asset /invoices.css - 304 Not Modified (0ms)
30797
+
30798
+
30799
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-08-29 09:58:30 +0600
30800
+ Served asset /scaffold.css - 304 Not Modified (0ms)
30801
+
30802
+
30803
+ Started GET "/assets/invoices.js?body=1" for 127.0.0.1 at 2013-08-29 09:58:30 +0600
30804
+ Served asset /invoices.js - 304 Not Modified (0ms)
30805
+
30806
+
30807
+ Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2013-08-29 09:58:30 +0600
30808
+ Served asset /users.js - 304 Not Modified (0ms)
30809
+
30810
+
30811
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-08-29 09:58:30 +0600
30812
+ Served asset /application.js - 304 Not Modified (1ms)
30813
+
30814
+
30815
+ Started GET "/" for 127.0.0.1 at 2013-08-29 09:58:52 +0600
30816
+ Processing by InvoicesController#index as HTML
30817
+  (0.4ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30818
+  (0.3ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30819
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30820
+ CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30821
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30822
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30823
+ Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (2.6ms)
30824
+ Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (1.3ms)
30825
+ Invoice Load (0.4ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000')) LIMIT 25 OFFSET 0
30826
+  (0.4ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30827
+ Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (69.0ms)
30828
+ Completed 200 OK in 143ms (Views: 118.8ms | ActiveRecord: 2.2ms)
30829
+
30830
+
30831
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-08-29 09:58:53 +0600
30832
+ Served asset /application.css - 304 Not Modified (20ms)
30833
+
30834
+
30835
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-08-29 09:58:53 +0600
30836
+ Served asset /scaffold.css - 304 Not Modified (0ms)
30837
+
30838
+
30839
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-08-29 09:58:53 +0600
30840
+ Served asset /jquery.js - 304 Not Modified (9ms)
30841
+
30842
+
30843
+ Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2013-08-29 09:58:53 +0600
30844
+ Served asset /users.css - 304 Not Modified (0ms)
30845
+
30846
+
30847
+ Started GET "/assets/invoices.css?body=1" for 127.0.0.1 at 2013-08-29 09:58:53 +0600
30848
+ Served asset /invoices.css - 304 Not Modified (0ms)
30849
+
30850
+
30851
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-08-29 09:58:53 +0600
30852
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
30853
+
30854
+
30855
+ Started GET "/assets/invoices.js?body=1" for 127.0.0.1 at 2013-08-29 09:58:53 +0600
30856
+ Served asset /invoices.js - 304 Not Modified (0ms)
30857
+
30858
+
30859
+ Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2013-08-29 09:58:53 +0600
30860
+ Served asset /users.js - 304 Not Modified (0ms)
30861
+
30862
+
30863
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-08-29 09:58:53 +0600
30864
+ Served asset /application.js - 304 Not Modified (2ms)
30865
+
30866
+
30867
+ Started GET "/?format=pdf" for 127.0.0.1 at 2013-08-29 09:58:56 +0600
30868
+ Processing by InvoicesController#index as PDF
30869
+  (0.4ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30870
+  (0.3ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30871
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30872
+ CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30873
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30874
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30875
+ Invoice Load (1.2ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30876
+ Rendered text template (0.0ms)
30877
+ Sent data (11.9ms)
30878
+ Completed 200 OK in 7578ms (Views: 11.7ms | ActiveRecord: 1.8ms)
30879
+
30880
+
30881
+ Started GET "/" for 127.0.0.1 at 2013-08-29 09:59:22 +0600
30882
+ Processing by InvoicesController#index as HTML
30883
+  (0.3ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30884
+  (0.3ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30885
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30886
+ CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30887
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30888
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30889
+ Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (2.4ms)
30890
+ Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (1.2ms)
30891
+ Invoice Load (0.4ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000')) LIMIT 25 OFFSET 0
30892
+  (0.3ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30893
+ Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (105.9ms)
30894
+ Completed 200 OK in 134ms (Views: 115.2ms | ActiveRecord: 1.4ms)
30895
+
30896
+
30897
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-08-29 09:59:22 +0600
30898
+ Served asset /application.css - 304 Not Modified (17ms)
30899
+
30900
+
30901
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-08-29 09:59:22 +0600
30902
+ Served asset /jquery.js - 304 Not Modified (2ms)
30903
+
30904
+
30905
+ Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2013-08-29 09:59:22 +0600
30906
+ Served asset /users.css - 304 Not Modified (0ms)
30907
+
30908
+
30909
+ Started GET "/assets/invoices.css?body=1" for 127.0.0.1 at 2013-08-29 09:59:22 +0600
30910
+ Served asset /invoices.css - 304 Not Modified (0ms)
30911
+
30912
+
30913
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-08-29 09:59:22 +0600
30914
+ Served asset /scaffold.css - 304 Not Modified (0ms)
30915
+
30916
+
30917
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-08-29 09:59:22 +0600
30918
+ Served asset /jquery_ujs.js - 304 Not Modified (3ms)
30919
+
30920
+
30921
+ Started GET "/assets/invoices.js?body=1" for 127.0.0.1 at 2013-08-29 09:59:22 +0600
30922
+ Served asset /invoices.js - 304 Not Modified (0ms)
30923
+
30924
+
30925
+ Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2013-08-29 09:59:22 +0600
30926
+ Served asset /users.js - 304 Not Modified (0ms)
30927
+
30928
+
30929
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-08-29 09:59:22 +0600
30930
+ Served asset /application.js - 304 Not Modified (1ms)
30931
+
30932
+
30933
+ Started GET "/?format=pdf" for 127.0.0.1 at 2013-08-29 09:59:25 +0600
30934
+ Processing by InvoicesController#index as PDF
30935
+  (0.4ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30936
+  (0.3ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30937
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30938
+ CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30939
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30940
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30941
+ Invoice Load (1.2ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30942
+ Rendered text template (0.0ms)
30943
+ Sent data (1.1ms)
30944
+ Completed 200 OK in 7146ms (Views: 0.9ms | ActiveRecord: 1.8ms)
30945
+ Connecting to database specified by database.yml
30946
+
30947
+
30948
+ Started GET "/" for 127.0.0.1 at 2013-08-29 10:02:18 +0600
30949
+ Processing by InvoicesController#index as HTML
30950
+  (0.4ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30951
+  (0.3ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30952
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30953
+ CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30954
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30955
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30956
+ Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (7.3ms)
30957
+ Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (2.1ms)
30958
+ Invoice Load (0.5ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000')) LIMIT 25 OFFSET 0
30959
+  (0.3ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
30960
+ Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (124.3ms)
30961
+ Completed 200 OK in 415ms (Views: 195.7ms | ActiveRecord: 36.6ms)
30962
+
30963
+
30964
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-08-29 10:02:18 +0600
30965
+ Served asset /application.css - 200 OK (21ms)
30966
+
30967
+
30968
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-08-29 10:02:19 +0600
30969
+ Served asset /jquery_ujs.js - 200 OK (3ms)
30970
+
30971
+
30972
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-08-29 10:02:19 +0600
30973
+ Served asset /scaffold.css - 200 OK (2ms)
30974
+
30975
+
30976
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-08-29 10:02:19 +0600
30977
+ Served asset /jquery.js - 200 OK (7ms)
30978
+
30979
+
30980
+ Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2013-08-29 10:02:19 +0600
30981
+ Served asset /users.css - 200 OK (3ms)
30982
+
30983
+
30984
+ Started GET "/assets/invoices.css?body=1" for 127.0.0.1 at 2013-08-29 10:02:19 +0600
30985
+ Served asset /invoices.css - 200 OK (7ms)
30986
+
30987
+
30988
+ Started GET "/assets/invoices.js?body=1" for 127.0.0.1 at 2013-08-29 10:02:19 +0600
30989
+ Served asset /invoices.js - 200 OK (3ms)
30990
+
30991
+
30992
+ Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2013-08-29 10:02:19 +0600
30993
+ Served asset /users.js - 200 OK (2ms)
30994
+
30995
+
30996
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-08-29 10:02:19 +0600
30997
+ Served asset /application.js - 200 OK (10ms)
30998
+
30999
+
31000
+ Started GET "/?format=pdf" for 127.0.0.1 at 2013-08-29 10:02:22 +0600
31001
+ Processing by InvoicesController#index as PDF
31002
+  (0.4ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31003
+  (0.3ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31004
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31005
+ CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31006
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31007
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31008
+ Invoice Load (1.2ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31009
+ Rendered text template (0.0ms)
31010
+ Sent data (4.5ms)
31011
+ Completed 200 OK in 7910ms (Views: 4.3ms | ActiveRecord: 1.9ms)
31012
+ Connecting to database specified by database.yml
31013
+ Connecting to database specified by database.yml
31014
+
31015
+
31016
+ Started GET "/" for 127.0.0.1 at 2013-08-29 10:03:45 +0600
31017
+ Processing by InvoicesController#index as HTML
31018
+  (0.4ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31019
+  (0.3ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31020
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31021
+ CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31022
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31023
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31024
+ Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (7.2ms)
31025
+ Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (2.1ms)
31026
+ Invoice Load (0.5ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000')) LIMIT 25 OFFSET 0
31027
+  (0.4ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31028
+ Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (126.4ms)
31029
+ Completed 200 OK in 382ms (Views: 193.4ms | ActiveRecord: 5.3ms)
31030
+
31031
+
31032
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-08-29 10:03:45 +0600
31033
+ Served asset /application.css - 304 Not Modified (14ms)
31034
+
31035
+
31036
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-08-29 10:03:45 +0600
31037
+ Served asset /scaffold.css - 304 Not Modified (2ms)
31038
+
31039
+
31040
+ Started GET "/assets/invoices.css?body=1" for 127.0.0.1 at 2013-08-29 10:03:45 +0600
31041
+ Served asset /invoices.css - 304 Not Modified (2ms)
31042
+
31043
+
31044
+ Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2013-08-29 10:03:45 +0600
31045
+ Served asset /users.css - 304 Not Modified (3ms)
31046
+
31047
+
31048
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-08-29 10:03:45 +0600
31049
+ Served asset /jquery_ujs.js - 304 Not Modified (2ms)
31050
+
31051
+
31052
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-08-29 10:03:45 +0600
31053
+ Served asset /jquery.js - 304 Not Modified (5ms)
31054
+
31055
+
31056
+ Started GET "/assets/invoices.js?body=1" for 127.0.0.1 at 2013-08-29 10:03:45 +0600
31057
+ Served asset /invoices.js - 304 Not Modified (2ms)
31058
+
31059
+
31060
+ Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2013-08-29 10:03:45 +0600
31061
+ Served asset /users.js - 304 Not Modified (2ms)
31062
+
31063
+
31064
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-08-29 10:03:45 +0600
31065
+ Served asset /application.js - 304 Not Modified (8ms)
31066
+
31067
+
31068
+ Started GET "/?format=pdf" for 127.0.0.1 at 2013-08-29 10:03:49 +0600
31069
+ Processing by InvoicesController#index as PDF
31070
+  (1.3ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31071
+  (0.3ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31072
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31073
+ CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31074
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31075
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31076
+ Invoice Load (1.2ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31077
+ Rendered text template (0.0ms)
31078
+ Sent data (4.2ms)
31079
+ Completed 200 OK in 7760ms (Views: 4.0ms | ActiveRecord: 2.8ms)
31080
+ Connecting to database specified by database.yml
31081
+
31082
+
31083
+ Started GET "/" for 127.0.0.1 at 2013-08-29 10:26:42 +0600
31084
+ Processing by InvoicesController#index as HTML
31085
+  (0.2ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31086
+  (0.1ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31087
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31088
+ CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31089
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31090
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31091
+ Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (3.8ms)
31092
+ Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (1.1ms)
31093
+ Invoice Load (0.3ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000')) LIMIT 25 OFFSET 0
31094
+  (0.2ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31095
+ Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (69.8ms)
31096
+ Completed 200 OK in 216ms (Views: 107.8ms | ActiveRecord: 2.7ms)
31097
+
31098
+
31099
+ Started GET "/assets/invoices.css?body=1" for 127.0.0.1 at 2013-08-29 10:26:42 +0600
31100
+ Served asset /invoices.css - 304 Not Modified (3ms)
31101
+
31102
+
31103
+ Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2013-08-29 10:26:42 +0600
31104
+ Served asset /users.js - 304 Not Modified (6ms)
31105
+
31106
+
31107
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-08-29 10:26:42 +0600
31108
+ Served asset /scaffold.css - 304 Not Modified (2ms)
31109
+
31110
+
31111
+ Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2013-08-29 10:26:42 +0600
31112
+ Served asset /users.css - 304 Not Modified (2ms)
31113
+
31114
+
31115
+ Started GET "/" for 127.0.0.1 at 2013-08-29 10:26:49 +0600
31116
+ Processing by InvoicesController#index as HTML
31117
+  (0.4ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31118
+  (0.3ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31119
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31120
+ CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31121
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31122
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31123
+ Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (2.6ms)
31124
+ Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (1.2ms)
31125
+ Invoice Load (0.5ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000')) LIMIT 25 OFFSET 0
31126
+  (0.3ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31127
+ Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (53.9ms)
31128
+ Completed 200 OK in 86ms (Views: 64.0ms | ActiveRecord: 1.4ms)
31129
+
31130
+
31131
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-08-29 10:26:49 +0600
31132
+ Served asset /application.css - 200 OK (24ms)
31133
+
31134
+
31135
+ Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2013-08-29 10:26:49 +0600
31136
+ Served asset /users.css - 200 OK (0ms)
31137
+
31138
+
31139
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-08-29 10:26:49 +0600
31140
+ Served asset /scaffold.css - 200 OK (0ms)
31141
+
31142
+
31143
+ Started GET "/assets/invoices.css?body=1" for 127.0.0.1 at 2013-08-29 10:26:49 +0600
31144
+ Served asset /invoices.css - 200 OK (0ms)
31145
+
31146
+
31147
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-08-29 10:26:49 +0600
31148
+ Served asset /jquery.js - 200 OK (4ms)
31149
+
31150
+
31151
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-08-29 10:26:49 +0600
31152
+ Served asset /jquery_ujs.js - 200 OK (1ms)
31153
+
31154
+
31155
+ Started GET "/assets/invoices.js?body=1" for 127.0.0.1 at 2013-08-29 10:26:49 +0600
31156
+ Served asset /invoices.js - 200 OK (1ms)
31157
+
31158
+
31159
+ Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2013-08-29 10:26:49 +0600
31160
+ Served asset /users.js - 200 OK (0ms)
31161
+
31162
+
31163
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-08-29 10:26:49 +0600
31164
+ Served asset /application.js - 200 OK (5ms)
31165
+
31166
+
31167
+ Started GET "/" for 127.0.0.1 at 2013-08-29 10:27:57 +0600
31168
+ Processing by InvoicesController#index as HTML
31169
+  (0.3ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31170
+  (0.3ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31171
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31172
+ CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31173
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31174
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31175
+ Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (2.6ms)
31176
+ Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (1.2ms)
31177
+ Invoice Load (0.5ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000')) LIMIT 25 OFFSET 0
31178
+  (0.3ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31179
+ Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (99.6ms)
31180
+ Completed 200 OK in 134ms (Views: 108.6ms | ActiveRecord: 2.2ms)
31181
+
31182
+
31183
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-08-29 10:27:57 +0600
31184
+ Served asset /application.css - 200 OK (7ms)
31185
+
31186
+
31187
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-08-29 10:27:57 +0600
31188
+ Served asset /jquery_ujs.js - 200 OK (0ms)
31189
+
31190
+
31191
+ Started GET "/assets/invoices.css?body=1" for 127.0.0.1 at 2013-08-29 10:27:57 +0600
31192
+ Served asset /invoices.css - 200 OK (0ms)
31193
+
31194
+
31195
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-08-29 10:27:57 +0600
31196
+ Served asset /jquery.js - 200 OK (0ms)
31197
+
31198
+
31199
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-08-29 10:27:57 +0600
31200
+ Served asset /scaffold.css - 200 OK (0ms)
31201
+
31202
+
31203
+ Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2013-08-29 10:27:57 +0600
31204
+ Served asset /users.css - 200 OK (0ms)
31205
+
31206
+
31207
+ Started GET "/assets/invoices.js?body=1" for 127.0.0.1 at 2013-08-29 10:27:57 +0600
31208
+ Served asset /invoices.js - 200 OK (0ms)
31209
+
31210
+
31211
+ Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2013-08-29 10:27:57 +0600
31212
+ Served asset /users.js - 200 OK (0ms)
31213
+
31214
+
31215
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-08-29 10:27:57 +0600
31216
+ Served asset /application.js - 200 OK (1ms)
31217
+
31218
+
31219
+ Started GET "/" for 127.0.0.1 at 2013-08-29 10:34:25 +0600
31220
+ Processing by InvoicesController#index as HTML
31221
+  (0.2ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31222
+  (0.1ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31223
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31224
+ CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31225
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31226
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31227
+ Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (1.0ms)
31228
+ Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (0.5ms)
31229
+ Invoice Load (0.2ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000')) LIMIT 25 OFFSET 0
31230
+  (0.1ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31231
+ Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (40.8ms)
31232
+ Completed 200 OK in 53ms (Views: 44.4ms | ActiveRecord: 0.5ms)
31233
+ Connecting to database specified by database.yml
31234
+
31235
+
31236
+ Started GET "/" for 127.0.0.1 at 2013-08-29 11:01:58 +0600
31237
+ Processing by InvoicesController#index as HTML
31238
+  (0.2ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31239
+  (0.1ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31240
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31241
+ CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31242
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31243
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31244
+ Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (3.0ms)
31245
+ Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (0.8ms)
31246
+ Invoice Load (0.3ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000')) LIMIT 25 OFFSET 0
31247
+  (0.2ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31248
+ Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (54.8ms)
31249
+ Completed 200 OK in 159ms (Views: 68.8ms | ActiveRecord: 2.2ms)
31250
+
31251
+
31252
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-08-29 11:01:59 +0600
31253
+ Served asset /application.css - 200 OK (6ms)
31254
+
31255
+
31256
+ Started GET "/assets/invoices.css?body=1" for 127.0.0.1 at 2013-08-29 11:01:59 +0600
31257
+ Served asset /invoices.css - 200 OK (1ms)
31258
+
31259
+
31260
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-08-29 11:01:59 +0600
31261
+ Served asset /jquery.js - 200 OK (5ms)
31262
+
31263
+
31264
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-08-29 11:01:59 +0600
31265
+ Served asset /scaffold.css - 200 OK (1ms)
31266
+
31267
+
31268
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-08-29 11:01:59 +0600
31269
+ Served asset /jquery_ujs.js - 200 OK (3ms)
31270
+
31271
+
31272
+ Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2013-08-29 11:01:59 +0600
31273
+ Served asset /users.css - 200 OK (1ms)
31274
+
31275
+
31276
+ Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2013-08-29 11:01:59 +0600
31277
+ Served asset /users.js - 200 OK (0ms)
31278
+
31279
+
31280
+ Started GET "/assets/invoices.js?body=1" for 127.0.0.1 at 2013-08-29 11:01:59 +0600
31281
+ Served asset /invoices.js - 200 OK (0ms)
31282
+
31283
+
31284
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-08-29 11:01:59 +0600
31285
+ Served asset /application.js - 200 OK (5ms)
31286
+
31287
+
31288
+ Started GET "/?utf8=%E2%9C%93&q%5Btitle_cont%5D=&q%5Bcreated_at_gteq%5D=2013-03-29&q%5Bcreated_at_lteq%5D=2013-09-29&q%5Bpaid_eq%5D=&commit=Search" for 127.0.0.1 at 2013-08-29 11:02:10 +0600
31289
+ Processing by InvoicesController#index as HTML
31290
+ Parameters: {"utf8"=>"✓", "q"=>{"title_cont"=>"", "created_at_gteq"=>"2013-03-29", "created_at_lteq"=>"2013-09-29", "paid_eq"=>""}, "commit"=>"Search"}
31291
+  (0.2ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31292
+  (0.1ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31293
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31294
+ CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31295
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31296
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31297
+ Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (1.1ms)
31298
+ Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (0.5ms)
31299
+ Invoice Load (0.2ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000')) LIMIT 25 OFFSET 0
31300
+  (0.1ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31301
+ Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (21.3ms)
31302
+ Completed 200 OK in 55ms (Views: 25.1ms | ActiveRecord: 0.6ms)
31303
+
31304
+
31305
+ Started GET "/?utf8=%E2%9C%93&q%5Btitle_cont%5D=&q%5Bcreated_at_gteq%5D=2013-03-29&q%5Bcreated_at_lteq%5D=2013-09-29&q%5Bpaid_eq%5D=&commit=Search" for 127.0.0.1 at 2013-08-29 11:02:38 +0600
31306
+ Processing by InvoicesController#index as HTML
31307
+ Parameters: {"utf8"=>"✓", "q"=>{"title_cont"=>"", "created_at_gteq"=>"2013-03-29", "created_at_lteq"=>"2013-09-29", "paid_eq"=>""}, "commit"=>"Search"}
31308
+  (0.1ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31309
+  (0.1ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31310
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31311
+ CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31312
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31313
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31314
+ Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (1.2ms)
31315
+ Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (0.5ms)
31316
+ Invoice Load (0.2ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000')) LIMIT 25 OFFSET 0
31317
+  (0.2ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31318
+ Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (48.3ms)
31319
+ Completed 200 OK in 63ms (Views: 51.9ms | ActiveRecord: 1.0ms)
31320
+
31321
+
31322
+ Started GET "/" for 127.0.0.1 at 2013-08-29 11:04:15 +0600
31323
+ Processing by InvoicesController#index as HTML
31324
+  (0.2ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31325
+  (0.1ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31326
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31327
+ CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31328
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31329
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31330
+ Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (1.0ms)
31331
+ Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (0.5ms)
31332
+ Invoice Load (0.2ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000')) LIMIT 25 OFFSET 0
31333
+  (0.2ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31334
+ Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (20.5ms)
31335
+ Completed 200 OK in 33ms (Views: 24.0ms | ActiveRecord: 0.7ms)
31336
+ Connecting to database specified by database.yml
31337
+
31338
+
31339
+ Started GET "/" for 127.0.0.1 at 2013-08-29 11:04:38 +0600
31340
+ Processing by InvoicesController#index as HTML
31341
+  (0.2ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31342
+  (0.1ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31343
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31344
+ CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31345
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31346
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31347
+ Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (3.0ms)
31348
+ Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (0.9ms)
31349
+ Invoice Load (0.2ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000')) LIMIT 25 OFFSET 0
31350
+  (0.2ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31351
+ Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (54.2ms)
31352
+ Completed 200 OK in 158ms (Views: 68.2ms | ActiveRecord: 2.1ms)
31353
+
31354
+
31355
+ Started GET "/" for 127.0.0.1 at 2013-08-29 11:06:51 +0600
31356
+ Processing by InvoicesController#index as HTML
31357
+  (0.1ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31358
+  (0.1ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31359
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31360
+ CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31361
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31362
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31363
+ Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (1.1ms)
31364
+ Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (0.5ms)
31365
+ Invoice Load (0.2ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000')) LIMIT 25 OFFSET 0
31366
+  (0.2ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31367
+ Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (45.4ms)
31368
+ Completed 200 OK in 58ms (Views: 49.0ms | ActiveRecord: 0.9ms)
31369
+
31370
+
31371
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-08-29 11:06:51 +0600
31372
+ Served asset /application.css - 200 OK (8ms)
31373
+
31374
+
31375
+ Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2013-08-29 11:06:51 +0600
31376
+ Served asset /users.css - 200 OK (1ms)
31377
+
31378
+
31379
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-08-29 11:06:51 +0600
31380
+ Served asset /jquery.js - 200 OK (4ms)
31381
+
31382
+
31383
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-08-29 11:06:51 +0600
31384
+ Served asset /scaffold.css - 200 OK (1ms)
31385
+
31386
+
31387
+ Started GET "/assets/invoices.css?body=1" for 127.0.0.1 at 2013-08-29 11:06:51 +0600
31388
+ Served asset /invoices.css - 200 OK (1ms)
31389
+
31390
+
31391
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-08-29 11:06:51 +0600
31392
+ Served asset /jquery_ujs.js - 200 OK (1ms)
31393
+
31394
+
31395
+ Started GET "/assets/invoices.js?body=1" for 127.0.0.1 at 2013-08-29 11:06:51 +0600
31396
+ Served asset /invoices.js - 200 OK (1ms)
31397
+
31398
+
31399
+ Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2013-08-29 11:06:51 +0600
31400
+ Served asset /users.js - 200 OK (1ms)
31401
+
31402
+
31403
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-08-29 11:06:51 +0600
31404
+ Served asset /application.js - 200 OK (6ms)
31405
+
31406
+
31407
+ Started GET "/?utf8=%E2%9C%93&q%5Btitle_cont%5D=&q%5Bcreated_at_gteq%5D=2013-03-29&q%5Bcreated_at_lteq%5D=2013-09-29&q%5Bpaid_eq%5D=true&commit=Search" for 127.0.0.1 at 2013-08-29 11:06:56 +0600
31408
+ Processing by InvoicesController#index as HTML
31409
+ Parameters: {"utf8"=>"✓", "q"=>{"title_cont"=>"", "created_at_gteq"=>"2013-03-29", "created_at_lteq"=>"2013-09-29", "paid_eq"=>"true"}, "commit"=>"Search"}
31410
+  (0.2ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000' AND "invoices"."paid" = 't'))
31411
+  (0.1ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000' AND "invoices"."paid" = 't'))
31412
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000' AND "invoices"."paid" = 't'))
31413
+ CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000' AND "invoices"."paid" = 't'))
31414
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000' AND "invoices"."paid" = 't'))
31415
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000' AND "invoices"."paid" = 't'))
31416
+ Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (1.0ms)
31417
+ Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (0.5ms)
31418
+ Invoice Load (0.2ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000' AND "invoices"."paid" = 't')) LIMIT 25 OFFSET 0
31419
+  (0.1ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000' AND "invoices"."paid" = 't'))
31420
+ Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (10.8ms)
31421
+ Completed 200 OK in 46ms (Views: 14.7ms | ActiveRecord: 0.6ms)
31422
+ Connecting to database specified by database.yml
31423
+
31424
+
31425
+ Started GET "/?utf8=%E2%9C%93&q%5Btitle_cont%5D=&q%5Bcreated_at_gteq%5D=2013-03-29&q%5Bcreated_at_lteq%5D=2013-09-29&q%5Bpaid_eq%5D=true&commit=Search" for 127.0.0.1 at 2013-08-29 11:07:08 +0600
31426
+ Processing by InvoicesController#index as HTML
31427
+ Parameters: {"utf8"=>"✓", "q"=>{"title_cont"=>"", "created_at_gteq"=>"2013-03-29", "created_at_lteq"=>"2013-09-29", "paid_eq"=>"true"}, "commit"=>"Search"}
31428
+  (0.2ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000' AND "invoices"."paid" = 't'))
31429
+  (0.1ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000' AND "invoices"."paid" = 't'))
31430
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000' AND "invoices"."paid" = 't'))
31431
+ CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000' AND "invoices"."paid" = 't'))
31432
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000' AND "invoices"."paid" = 't'))
31433
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000' AND "invoices"."paid" = 't'))
31434
+ Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (3.1ms)
31435
+ Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (0.9ms)
31436
+ Invoice Load (0.2ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000' AND "invoices"."paid" = 't')) LIMIT 25 OFFSET 0
31437
+  (0.2ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000' AND "invoices"."paid" = 't'))
31438
+ Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (45.0ms)
31439
+ Completed 200 OK in 155ms (Views: 59.6ms | ActiveRecord: 2.3ms)
31440
+
31441
+
31442
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-08-29 11:07:08 +0600
31443
+ Served asset /application.css - 200 OK (31ms)
31444
+
31445
+
31446
+ Started GET "/assets/invoices.css?body=1" for 127.0.0.1 at 2013-08-29 11:07:08 +0600
31447
+ Served asset /invoices.css - 200 OK (1ms)
31448
+
31449
+
31450
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-08-29 11:07:08 +0600
31451
+ Served asset /jquery_ujs.js - 200 OK (2ms)
31452
+
31453
+
31454
+ Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2013-08-29 11:07:08 +0600
31455
+ Served asset /users.css - 200 OK (1ms)
31456
+
31457
+
31458
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-08-29 11:07:08 +0600
31459
+ Served asset /scaffold.css - 200 OK (2ms)
31460
+
31461
+
31462
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-08-29 11:07:08 +0600
31463
+ Served asset /jquery.js - 200 OK (1ms)
31464
+
31465
+
31466
+ Started GET "/assets/invoices.js?body=1" for 127.0.0.1 at 2013-08-29 11:07:08 +0600
31467
+ Served asset /invoices.js - 200 OK (1ms)
31468
+
31469
+
31470
+ Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2013-08-29 11:07:08 +0600
31471
+ Served asset /users.js - 200 OK (1ms)
31472
+
31473
+
31474
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-08-29 11:07:08 +0600
31475
+ Served asset /application.js - 200 OK (5ms)
31476
+
31477
+
31478
+ Started GET "/" for 127.0.0.1 at 2013-08-29 11:07:59 +0600
31479
+ Processing by InvoicesController#index as HTML
31480
+  (0.1ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31481
+  (0.1ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31482
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31483
+ CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31484
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31485
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31486
+ Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (1.0ms)
31487
+ Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (0.5ms)
31488
+ Invoice Load (0.2ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000')) LIMIT 25 OFFSET 0
31489
+  (0.2ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31490
+ Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (28.0ms)
31491
+ Completed 200 OK in 41ms (Views: 31.8ms | ActiveRecord: 0.8ms)
31492
+
31493
+
31494
+ Started GET "/?utf8=%E2%9C%93&q%5Btitle_cont%5D=&q%5Bcreated_at_gteq%5D=2013-03-29&q%5Bcreated_at_lteq%5D=2013-09-29&q%5Bpaid_eq%5D=&commit=Search" for 127.0.0.1 at 2013-08-29 11:08:04 +0600
31495
+ Processing by InvoicesController#index as HTML
31496
+ Parameters: {"utf8"=>"✓", "q"=>{"title_cont"=>"", "created_at_gteq"=>"2013-03-29", "created_at_lteq"=>"2013-09-29", "paid_eq"=>""}, "commit"=>"Search"}
31497
+  (0.2ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31498
+  (0.1ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31499
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31500
+ CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31501
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31502
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31503
+ Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (1.1ms)
31504
+ Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (0.5ms)
31505
+ Invoice Load (0.2ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000')) LIMIT 25 OFFSET 0
31506
+  (0.1ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000'))
31507
+ Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (46.6ms)
31508
+ Completed 200 OK in 61ms (Views: 50.4ms | ActiveRecord: 0.6ms)