-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconsole
1152 lines (1121 loc) · 56.1 KB
/
console
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Script started on Mon 10 Oct 2011 20:44:13 BST
]0;nehal@nehal-laptop: ~/Projects/VisioInvoiceV3nehal@nehal-laptop:~/Projects/VisioInvoiceV3$ rails scrtip[K[K[K[K[K[K[K[K[K[K[K[Kls
[0m[01;34mapp[0m [01;34mconfig[0m config.rb config.ru console [01;34mdb[0m [01;34mdoc[0m Gemfile Gemfile.lock [01;34mlib[0m [01;34mlog[0m [01;34mpublic[0m Rakefile readme README [01;34msass[0m [01;34mscript[0m [01;34mtest[0m [01;34mtmp[0m [01;34mvendor[0m webrat.log
[m]0;nehal@nehal-laptop: ~/Projects/VisioInvoiceV3nehal@nehal-laptop:~/Projects/VisioInvoiceV3$ script.[K/d[Kc[K[K[K[K[K[K[K[Krails script.[K/s[Kconsole
Error: Command not recognized
Usage: rails COMMAND [ARGS]
The most common rails commands are:
generate Generate new code (short-cut alias: "g")
console Start the Rails console (short-cut alias: "c")
server Start the Rails server (short-cut alias: "s")
dbconsole Start a console for the database specified in config/database.yml
(short-cut alias: "db")
new Create a new Rails application. "rails new my_app" creates a
new application called MyApp in "./my_app"
In addition to those, there are:
application Generate the Rails application code
destroy Undo code generated with "generate"
benchmarker See how fast a piece of code runs
profiler Get profile information from a piece of code
plugin Install a plugin
runner Run a piece of code in the application environment
All commands can be run with -h for more information.
]0;nehal@nehal-laptop: ~/Projects/VisioInvoiceV3nehal@nehal-laptop:~/Projects/VisioInvoiceV3$ rails console
Loading development environment (Rails 3.0.10)
irb(main):001:0> Prawn::BASEDIR
=> "/usr/lib/ruby/gems/1.8/gems/prawn-core-0.8.4"
irb(main):002:0> ecit
NameError: undefined local variable or method `ecit' for main:Object
from (irb):2
irb(main):003:0> .quit
SyntaxError: compile error
(irb):3: syntax error, unexpected '.'
.quit
^
from (irb):3
irb(main):004:0> exit
]0;nehal@nehal-laptop: ~/Projects/VisioInvoiceV3nehal@nehal-laptop:~/Projects/VisioInvoiceV3$ rails server
=> Booting WEBrick
=> Rails 3.0.10 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2011-10-10 20:45:40] INFO WEBrick 1.3.1
[2011-10-10 20:45:40] INFO ruby 1.8.7 (2010-01-10) [i486-linux]
[2011-10-10 20:45:45] INFO WEBrick::HTTPServer#start: pid=29583 port=3000
Started GET "/invoices/23" for 127.0.0.1 at Mon Oct 10 20:45:55 +0100 2011
Processing by InvoicesController#show as HTML
Parameters: {"id"=>"23"}
[1m[36mSQL (1.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mUser Load (0.5ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 15 LIMIT 1
[1m[36mCompany Load (0.2ms)[0m [1mSELECT "companies".* FROM "companies" WHERE "companies"."name" = 'foo' LIMIT 1[0m
[1m[35mSQL (0.6ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mInvoice Load (0.5ms)[0m [1mSELECT "invoices".* FROM "invoices" INNER JOIN "clients" ON "invoices".client_id = "clients".id WHERE "invoices"."id" = 23 AND (("clients".company_id = 13)) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m SELECT COUNT(*) FROM "invoice_items" WHERE ("invoice_items".invoice_id = 23)
[1m[36mRole Load (0.3ms)[0m [1mSELECT "roles".* FROM "roles" INNER JOIN "roles_users" ON "roles".id = "roles_users".role_id WHERE "roles"."name" = 'Admin' AND ("roles_users".user_id = 15 ) LIMIT 1[0m
[1m[35mReminder Load (0.4ms)[0m SELECT "reminders".* FROM "reminders" WHERE ("reminders".invoice_id = 23) LIMIT 1
[1m[36mSchedule Load (0.3ms)[0m [1mSELECT "schedules".* FROM "schedules" WHERE ("schedules".invoice_id = 23) LIMIT 1[0m
Rendered invoices/show_elements/_toolbar.haml (39.7ms)
[1m[35mClient Load (0.3ms)[0m SELECT "clients".* FROM "clients" WHERE "clients"."id" = 1 LIMIT 1
Rendered clients/_address.haml (9.0ms)
[1m[36mCompany Load (0.3ms)[0m [1mSELECT "companies".* FROM "companies" WHERE "companies"."id" = 13 LIMIT 1[0m
[1m[35mSetting Load (0.4ms)[0m SELECT "settings".* FROM "settings" WHERE ("settings".company_id = 13) LIMIT 1
[1m[36mInvoiceItem Load (0.3ms)[0m [1mSELECT "invoice_items".* FROM "invoice_items" WHERE ("invoice_items".invoice_id = 23)[0m
Rendered invoices/show_elements/_show_invoice_item.haml (16.9ms)
[1m[35mSQL (0.2ms)[0m SELECT SUM("payments"."amount") AS sum_id FROM "payments" WHERE (invoice_id = 23)
Rendered invoices/show_elements/_show_invoice_summary.haml (17.3ms)
Rendered invoices/_history.haml (11.1ms)
Rendered invoices/show_elements/_show_core.haml (224.5ms)
Rendered layouts/_head.haml (19.1ms)
Rendered devise/menu/_registration_items.haml (4.1ms)
Rendered devise/menu/_login_items.haml (2.7ms)
Rendered layouts/_footer.haml (1.2ms)
Rendered invoices/show.haml within layouts/dashboard (342.2ms)
Completed 200 OK in 841ms (Views: 348.3ms | ActiveRecord: 6.0ms)
Started GET "/public/images/link_icons/pdf.png?1304076604" for 127.0.0.1 at Mon Oct 10 20:45:58 +0100 2011
ActionController::RoutingError (No route matches "/public/images/link_icons/pdf.png"):
Rendered /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (1.2ms)
Started GET "/invoices/23.pdf" for 127.0.0.1 at Mon Oct 10 20:46:00 +0100 2011
Processing by InvoicesController#show as PDF
Parameters: {"id"=>"23"}
[1m[36mUser Load (0.6ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 15 LIMIT 1[0m
[1m[35mCompany Load (0.2ms)[0m SELECT "companies".* FROM "companies" WHERE "companies"."name" = 'foo' LIMIT 1
[1m[36mSQL (0.6ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mInvoice Load (0.5ms)[0m SELECT "invoices".* FROM "invoices" INNER JOIN "clients" ON "invoices".client_id = "clients".id WHERE "invoices"."id" = 23 AND (("clients".company_id = 13)) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mSELECT COUNT(*) FROM "invoice_items" WHERE ("invoice_items".invoice_id = 23)[0m
[1m[35mRole Load (0.3ms)[0m SELECT "roles".* FROM "roles" INNER JOIN "roles_users" ON "roles".id = "roles_users".role_id WHERE "roles"."name" = 'Admin' AND ("roles_users".user_id = 15 ) LIMIT 1
[1m[36mReminder Load (0.4ms)[0m [1mSELECT "reminders".* FROM "reminders" WHERE ("reminders".invoice_id = 23) LIMIT 1[0m
[1m[35mSchedule Load (0.3ms)[0m SELECT "schedules".* FROM "schedules" WHERE ("schedules".invoice_id = 23) LIMIT 1
Rendered invoices/show_elements/_toolbar.haml (38.1ms)
[1m[36mClient Load (0.3ms)[0m [1mSELECT "clients".* FROM "clients" WHERE "clients"."id" = 1 LIMIT 1[0m
Rendered clients/_address.haml (9.0ms)
[1m[35mCompany Load (0.3ms)[0m SELECT "companies".* FROM "companies" WHERE "companies"."id" = 13 LIMIT 1
[1m[36mSetting Load (0.4ms)[0m [1mSELECT "settings".* FROM "settings" WHERE ("settings".company_id = 13) LIMIT 1[0m
[1m[35mInvoiceItem Load (0.4ms)[0m SELECT "invoice_items".* FROM "invoice_items" WHERE ("invoice_items".invoice_id = 23)
Rendered invoices/show_elements/_show_invoice_item.haml (11.2ms)
[1m[36mSQL (0.2ms)[0m [1mSELECT SUM("payments"."amount") AS sum_id FROM "payments" WHERE (invoice_id = 23)[0m
Rendered invoices/show_elements/_show_invoice_summary.haml (16.6ms)
Rendered invoices/_history.haml (7.1ms)
Rendered invoices/show_elements/_show_core.haml (206.6ms)
Rendered invoices/show.haml (260.8ms)
Completed 200 OK in 756ms (Views: 272.0ms | ActiveRecord: 4.8ms)
^C[2011-10-10 20:50:19] INFO going to shutdown ...
[2011-10-10 20:50:19] INFO WEBrick::HTTPServer#start done.
Exiting
]0;nehal@nehal-laptop: ~/Projects/VisioInvoiceV3nehal@nehal-laptop:~/Projects/VisioInvoiceV3$ bundle install
Fetching source index for http://rubygems.org/
[31mCould not find gem 'install pdf-reader (>= 0)' in any of the gem sources listed in your Gemfile.[0m
]0;nehal@nehal-laptop: ~/Projects/VisioInvoiceV3nehal@nehal-laptop:~/Projects/VisioInvoiceV3$ bundle install
Using rake (0.9.2)
Using Ascii85 (1.0.1)
Using abstract (1.0.0)
Using activesupport (3.0.10)
Using builder (2.1.2)
Using i18n (0.5.0)
Using activemodel (3.0.10)
Using erubis (2.6.6)
Using rack (1.2.3)
Using rack-mount (0.6.14)
Using rack-test (0.5.7)
Using tzinfo (0.3.29)
Using actionpack (3.0.10)
Using mime-types (1.16)
Using polyglot (0.3.2)
Using treetop (1.4.10)
Using mail (2.2.19)
Using actionmailer (3.0.10)
Using braintree (2.10.2)
Using activemerchant (1.10.0)
Using arel (2.0.10)
Using activerecord (3.0.10)
Using activeresource (3.0.10)
Using babosa (0.3.5)
Using bcrypt-ruby (2.1.4)
Using bundler (1.0.18)
Using cancan (1.6.5)
Using chronic (0.6.2)
Using chunky_png (1.2.1)
Using cocaine (0.2.0)
Using fssm (0.2.7)
Using sass (3.1.7)
Using compass (0.11.5)
Using deep_cloneable (1.3.0)
Using delorean (1.1.0)
Using orm_adapter (0.0.5)
Using warden (1.0.5)
Using devise (1.4.2)
Using rdoc (3.9.2)
Using thor (0.14.6)
Using railties (3.0.10)
Using rails (3.0.10)
Using devise_invitable (0.5.4)
Using factory_girl (2.0.4)
Using factory_girl_rails (1.1.0)
Using fancy-buttons (1.1.2)
Using friendly_id (3.2.1.1)
Using haml (3.1.2)
Using haml-rails (0.3.4)
Using jquery-rails (1.0.13)
Using meta_search (1.0.6)
Using mocha (0.9.12)
Using nested_form (0.1.1) from git://github.com/ryanb/nested_form.git (at master)
Using nifty-generators (0.4.6)
Using nokogiri (1.5.0)
Using paperclip (2.3.16)
Using pdf-reader (0.10.0)
Using prawn-core (0.8.4)
Using prawn-layout (0.8.4)
Using prawn-security (0.8.4)
Using prawn (0.8.4)
Using simple-navigation (3.5.0)
Using simple_form (1.4.2)
Using sqlite3 (1.3.4)
Using transitions (0.0.10)
Using webrat (0.7.3)
Using will_paginate (3.0.0)
[32mYour bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.[0m
]0;nehal@nehal-laptop: ~/Projects/VisioInvoiceV3nehal@nehal-laptop:~/Projects/VisioInvoiceV3$ rails server
=> Booting WEBrick
=> Rails 3.0.10 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2011-10-10 20:52:06] INFO WEBrick 1.3.1
[2011-10-10 20:52:06] INFO ruby 1.8.7 (2010-01-10) [i486-linux]
[2011-10-10 20:52:11] INFO WEBrick::HTTPServer#start: pid=29887 port=3000
Started GET "/invoices/23.pdf" for 127.0.0.1 at Mon Oct 10 20:52:11 +0100 2011
Processing by InvoicesController#show as PDF
Parameters: {"id"=>"23"}
[1m[36mSQL (1.6ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mUser Load (0.5ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 15 LIMIT 1
[1m[36mCompany Load (0.2ms)[0m [1mSELECT "companies".* FROM "companies" WHERE "companies"."name" = 'foo' LIMIT 1[0m
[1m[35mSQL (0.6ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mInvoice Load (0.7ms)[0m [1mSELECT "invoices".* FROM "invoices" INNER JOIN "clients" ON "invoices".client_id = "clients".id WHERE "invoices"."id" = 23 AND (("clients".company_id = 13)) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m SELECT COUNT(*) FROM "invoice_items" WHERE ("invoice_items".invoice_id = 23)
[1m[36mRole Load (0.3ms)[0m [1mSELECT "roles".* FROM "roles" INNER JOIN "roles_users" ON "roles".id = "roles_users".role_id WHERE "roles"."name" = 'Admin' AND ("roles_users".user_id = 15 ) LIMIT 1[0m
[1m[35mReminder Load (0.4ms)[0m SELECT "reminders".* FROM "reminders" WHERE ("reminders".invoice_id = 23) LIMIT 1
[1m[36mSchedule Load (0.3ms)[0m [1mSELECT "schedules".* FROM "schedules" WHERE ("schedules".invoice_id = 23) LIMIT 1[0m
Rendered invoices/show_elements/_toolbar.haml (143.7ms)
[1m[35mClient Load (0.3ms)[0m SELECT "clients".* FROM "clients" WHERE "clients"."id" = 1 LIMIT 1
Rendered clients/_address.haml (9.1ms)
[1m[36mCompany Load (0.3ms)[0m [1mSELECT "companies".* FROM "companies" WHERE "companies"."id" = 13 LIMIT 1[0m
[1m[35mSetting Load (0.4ms)[0m SELECT "settings".* FROM "settings" WHERE ("settings".company_id = 13) LIMIT 1
[1m[36mInvoiceItem Load (0.3ms)[0m [1mSELECT "invoice_items".* FROM "invoice_items" WHERE ("invoice_items".invoice_id = 23)[0m
Rendered invoices/show_elements/_show_invoice_item.haml (17.6ms)
[1m[35mSQL (0.2ms)[0m SELECT SUM("payments"."amount") AS sum_id FROM "payments" WHERE (invoice_id = 23)
Rendered invoices/show_elements/_show_invoice_summary.haml (17.6ms)
Rendered invoices/_history.haml (11.5ms)
Rendered invoices/show_elements/_show_core.haml (118.5ms)
Rendered invoices/show.haml (278.8ms)
Completed 200 OK in 680ms (Views: 290.7ms | ActiveRecord: 6.4ms)
^C[2011-10-10 20:55:38] INFO going to shutdown ...
[2011-10-10 20:55:38] INFO WEBrick::HTTPServer#start done.
Exiting
]0;nehal@nehal-laptop: ~/Projects/VisioInvoiceV3nehal@nehal-laptop:~/Projects/VisioInvoiceV3$ rails serverbundle install
Fetching source index for http://rubygems.org/
Enter your password to install the bundled RubyGems to your system:
Using rake (0.9.2)
Using abstract (1.0.0)
Using activesupport (3.0.10)
Using builder (2.1.2)
Using i18n (0.5.0)
Using activemodel (3.0.10)
Using erubis (2.6.6)
Using rack (1.2.3)
Using rack-mount (0.6.14)
Using rack-test (0.5.7)
Using tzinfo (0.3.29)
Using actionpack (3.0.10)
Using mime-types (1.16)
Using polyglot (0.3.2)
Using treetop (1.4.10)
Using mail (2.2.19)
Using actionmailer (3.0.10)
Using braintree (2.10.2)
Using activemerchant (1.10.0)
Using arel (2.0.10)
Using activerecord (3.0.10)
Using activeresource (3.0.10)
Using babosa (0.3.5)
Using bcrypt-ruby (2.1.4)
Using bundler (1.0.18)
Using cancan (1.6.5)
Using chronic (0.6.2)
Using chunky_png (1.2.1)
Using cocaine (0.2.0)
Using fssm (0.2.7)
Using sass (3.1.7)
Using compass (0.11.5)
Using deep_cloneable (1.3.0)
Using delorean (1.1.0)
Using orm_adapter (0.0.5)
Using warden (1.0.5)
Using devise (1.4.2)
Using rdoc (3.9.2)
Using thor (0.14.6)
Using railties (3.0.10)
Using rails (3.0.10)
Using devise_invitable (0.5.4)
Using factory_girl (2.0.4)
Using factory_girl_rails (1.1.0)
Using fancy-buttons (1.1.2)
Using friendly_id (3.2.1.1)
Using haml (3.1.2)
Using haml-rails (0.3.4)
Using jquery-rails (1.0.13)
Using meta_search (1.0.6)
Using mocha (0.9.12)
Using nested_form (0.1.1) from git://github.com/ryanb/nested_form.git (at master)
Using nifty-generators (0.4.6)
Using nokogiri (1.5.0)
Using paperclip (2.3.16)
Using prawn-core (0.8.4)
Using prawn-layout (0.8.4)
Using prawn-security (0.8.4)
Using prawn (0.8.4)
Installing prawnto (0.0.4)
Using simple-navigation (3.5.0)
Using simple_form (1.4.2)
Using sqlite3 (1.3.4)
Using transitions (0.0.10)
Using webrat (0.7.3)
Using will_paginate (3.0.0)
[32mYour bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.[0m
]0;nehal@nehal-laptop: ~/Projects/VisioInvoiceV3nehal@nehal-laptop:~/Projects/VisioInvoiceV3$ rails server
=> Booting WEBrick
=> Rails 3.0.10 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/http/mime_type.rb:98: warning: already initialized constant PDF
[2011-10-10 20:57:45] INFO WEBrick 1.3.1
[2011-10-10 20:57:45] INFO ruby 1.8.7 (2010-01-10) [i486-linux]
[2011-10-10 20:57:50] INFO WEBrick::HTTPServer#start: pid=7099 port=3000
/home/nehal/Projects/VisioInvoiceV3/app/views/invoices/show.pdf.prawn:36: warning: don't put space before argument parentheses
Started GET "/invoices/23.pdf" for 127.0.0.1 at Mon Oct 10 20:57:52 +0100 2011
Processing by InvoicesController#show as PDF
Parameters: {"id"=>"23"}
[1m[36mSQL (1.4ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mUser Load (0.5ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 15 LIMIT 1
[1m[36mCompany Load (0.3ms)[0m [1mSELECT "companies".* FROM "companies" WHERE "companies"."name" = 'foo' LIMIT 1[0m
[1m[35mSQL (0.6ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mInvoice Load (0.5ms)[0m [1mSELECT "invoices".* FROM "invoices" INNER JOIN "clients" ON "invoices".client_id = "clients".id WHERE "invoices"."id" = 23 AND (("clients".company_id = 13)) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m SELECT COUNT(*) FROM "invoice_items" WHERE ("invoice_items".invoice_id = 23)
[1m[36mRole Load (0.3ms)[0m [1mSELECT "roles".* FROM "roles" INNER JOIN "roles_users" ON "roles".id = "roles_users".role_id WHERE "roles"."name" = 'Admin' AND ("roles_users".user_id = 15 ) LIMIT 1[0m
[1m[35mSetting Load (0.4ms)[0m SELECT "settings".* FROM "settings" WHERE ("settings".company_id = 13) LIMIT 1
[1m[36mClient Load (0.4ms)[0m [1mSELECT "clients".* FROM "clients" WHERE "clients"."id" = 1 LIMIT 1[0m
Rendered invoices/show.pdf.prawn (617.6ms)
Completed 500 Internal Server Error in 1133ms
ActionView::Template::Error (undefined method `make_table' for #<Prawn::Document:0xb652243c>):
92: [@invoice.id,@invoice.business_id,@invoice.purchase_order_id,@invoice.invoice_date, @invoice.due_date]
93: ]
94:
95: header_table = pdf.make_table(items, :header => true) do
96: cells.size = 9
97: cells.padding = 2
98: row(0).style(:font_style => :bold, :background_color => 'C3D9FF')
app/views/invoices/show.pdf.prawn:95
app/views/invoices/show.pdf.prawn:54:in `_app_views_invoices_show_pdf_prawn__535227192__617969678_0'
app/controllers/invoices_controller.rb:27:in `show'
Rendered /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/middleware/templates/rescues/_trace.erb (6.0ms)
[1m[35mSQL (1.4ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.5ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.5ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.5ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.5ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.5ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.6ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.6ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.6ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.5ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.5ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.5ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mInvoiceItem Load (0.2ms)[0m [1mSELECT SUM(qty*cost) as total_cost FROM "invoice_items" WHERE ("invoice_items".invoice_id = 23)[0m
[1m[35mInvoiceItem Load (0.2ms)[0m SELECT SUM(qty*(cost*1)) as total_cost FROM "invoice_items" WHERE "invoice_items"."taxable" = 't' AND ("invoice_items".invoice_id = 23)
[1m[36mInvoiceItem Load (0.2ms)[0m [1mSELECT SUM(qty*cost) as total_cost FROM "invoice_items" WHERE "invoice_items"."taxable" IN ('f', NULL) AND ("invoice_items".invoice_id = 23)[0m
[1m[35mInvoiceItem Load (0.2ms)[0m SELECT SUM(qty*(cost*1)) as total_cost FROM "invoice_items" WHERE "invoice_items"."taxable" = 't' AND ("invoice_items".invoice_id = 23)
[1m[36mInvoiceItem Load (0.3ms)[0m [1mSELECT SUM(qty*cost) as total_cost FROM "invoice_items" WHERE "invoice_items"."taxable" IN ('f', NULL) AND ("invoice_items".invoice_id = 23)[0m
[1m[35mSQL (0.6ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.6ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.6ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.6ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.5ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.5ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.4ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.5ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.4ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.5ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.5ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.4ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.4ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.5ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mInvoiceItem Load (0.2ms)[0m [1mSELECT SUM(qty*cost) as total_cost FROM "invoice_items" WHERE ("invoice_items".invoice_id = 23)[0m
[1m[35mInvoiceItem Load (0.3ms)[0m SELECT SUM(qty*(cost*1)) as total_cost FROM "invoice_items" WHERE "invoice_items"."taxable" = 't' AND ("invoice_items".invoice_id = 23)
[1m[36mInvoiceItem Load (0.3ms)[0m [1mSELECT SUM(qty*cost) as total_cost FROM "invoice_items" WHERE "invoice_items"."taxable" IN ('f', NULL) AND ("invoice_items".invoice_id = 23)[0m
[1m[35mInvoiceItem Load (0.2ms)[0m SELECT SUM(qty*(cost*1)) as total_cost FROM "invoice_items" WHERE "invoice_items"."taxable" = 't' AND ("invoice_items".invoice_id = 23)
[1m[36mInvoiceItem Load (0.2ms)[0m [1mSELECT SUM(qty*cost) as total_cost FROM "invoice_items" WHERE "invoice_items"."taxable" IN ('f', NULL) AND ("invoice_items".invoice_id = 23)[0m
Rendered /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (85.4ms)
Rendered /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (101.7ms)
^C[2011-10-10 20:59:46] INFO going to shutdown ...
[2011-10-10 20:59:46] INFO WEBrick::HTTPServer#start done.
Exiting
]0;nehal@nehal-laptop: ~/Projects/VisioInvoiceV3nehal@nehal-laptop:~/Projects/VisioInvoiceV3$ rails server
=> Booting WEBrick
=> Rails 3.0.10 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/http/mime_type.rb:98: warning: already initialized constant PDF
[2011-10-10 20:59:58] INFO WEBrick 1.3.1
[2011-10-10 20:59:58] INFO ruby 1.8.7 (2010-01-10) [i486-linux]
[2011-10-10 21:00:03] INFO WEBrick::HTTPServer#start: pid=7110 port=3000
^C[2011-10-10 21:00:18] INFO going to shutdown ...
[2011-10-10 21:00:18] INFO WEBrick::HTTPServer#start done.
Exiting
]0;nehal@nehal-laptop: ~/Projects/VisioInvoiceV3nehal@nehal-laptop:~/Projects/VisioInvoiceV3$ bundle install
Fetching source index for http://rubygems.org/
[31mYou have requested:
prawn ~> 0.10.2
The bundle currently has prawn locked at 0.8.4.
Try running `bundle update prawn`[0m
]0;nehal@nehal-laptop: ~/Projects/VisioInvoiceV3nehal@nehal-laptop:~/Projects/VisioInvoiceV3$ bundle install
Using rake (0.9.2)
Using abstract (1.0.0)
Using activesupport (3.0.10)
Using builder (2.1.2)
Using i18n (0.5.0)
Using activemodel (3.0.10)
Using erubis (2.6.6)
Using rack (1.2.3)
Using rack-mount (0.6.14)
Using rack-test (0.5.7)
Using tzinfo (0.3.29)
Using actionpack (3.0.10)
Using mime-types (1.16)
Using polyglot (0.3.2)
Using treetop (1.4.10)
Using mail (2.2.19)
Using actionmailer (3.0.10)
Using braintree (2.10.2)
Using activemerchant (1.10.0)
Using arel (2.0.10)
Using activerecord (3.0.10)
Using activeresource (3.0.10)
Using babosa (0.3.5)
Using bcrypt-ruby (2.1.4)
Using bundler (1.0.18)
Using cancan (1.6.5)
Using chronic (0.6.2)
Using chunky_png (1.2.1)
Using cocaine (0.2.0)
Using fssm (0.2.7)
Using sass (3.1.7)
Using compass (0.11.5)
Using deep_cloneable (1.3.0)
Using delorean (1.1.0)
Using orm_adapter (0.0.5)
Using warden (1.0.5)
Using devise (1.4.2)
Using rdoc (3.9.2)
Using thor (0.14.6)
Using railties (3.0.10)
Using rails (3.0.10)
Using devise_invitable (0.5.4)
Using factory_girl (2.0.4)
Using factory_girl_rails (1.1.0)
Using fancy-buttons (1.1.2)
Using friendly_id (3.2.1.1)
Using haml (3.1.2)
Using haml-rails (0.3.4)
Using jquery-rails (1.0.13)
Using meta_search (1.0.6)
Using mocha (0.9.12)
Using nested_form (0.1.1) from git://github.com/ryanb/nested_form.git (at master)
Using nifty-generators (0.4.6)
Using nokogiri (1.5.0)
Using paperclip (2.3.16)
Using prawn-core (0.8.4)
Using prawn-layout (0.8.4)
Using prawn-security (0.8.4)
Using prawn (0.8.4)
Using prawnto (0.0.4)
Using simple-navigation (3.5.0)
Using simple_form (1.4.2)
Using sqlite3 (1.3.4)
Using transitions (0.0.10)
Using webrat (0.7.3)
Using will_paginate (3.0.0)
[32mYour bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.[0m
]0;nehal@nehal-laptop: ~/Projects/VisioInvoiceV3nehal@nehal-laptop:~/Projects/VisioInvoiceV3$ rails server
=> Booting WEBrick
=> Rails 3.0.10 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/http/mime_type.rb:98: warning: already initialized constant PDF
[2011-10-10 21:04:27] INFO WEBrick 1.3.1
[2011-10-10 21:04:27] INFO ruby 1.8.7 (2010-01-10) [i486-linux]
[2011-10-10 21:04:32] INFO WEBrick::HTTPServer#start: pid=7142 port=3000
ee/home/nehal/Projects/VisioInvoiceV3/app/views/invoices/show.pdf.prawn:36: warning: don't put space before argument parentheses
Started GET "/invoices/23.pdf" for 127.0.0.1 at Mon Oct 10 21:05:03 +0100 2011
Processing by InvoicesController#show as PDF
Parameters: {"id"=>"23"}
[1m[36mSQL (1.4ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mUser Load (0.6ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 15 LIMIT 1
[1m[36mCompany Load (0.2ms)[0m [1mSELECT "companies".* FROM "companies" WHERE "companies"."name" = 'foo' LIMIT 1[0m
[1m[35mSQL (0.6ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mInvoice Load (0.6ms)[0m [1mSELECT "invoices".* FROM "invoices" INNER JOIN "clients" ON "invoices".client_id = "clients".id WHERE "invoices"."id" = 23 AND (("clients".company_id = 13)) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m SELECT COUNT(*) FROM "invoice_items" WHERE ("invoice_items".invoice_id = 23)
[1m[36mRole Load (0.3ms)[0m [1mSELECT "roles".* FROM "roles" INNER JOIN "roles_users" ON "roles".id = "roles_users".role_id WHERE "roles"."name" = 'Admin' AND ("roles_users".user_id = 15 ) LIMIT 1[0m
[1m[35mSetting Load (0.4ms)[0m SELECT "settings".* FROM "settings" WHERE ("settings".company_id = 13) LIMIT 1
[1m[36mClient Load (0.4ms)[0m [1mSELECT "clients".* FROM "clients" WHERE "clients"."id" = 1 LIMIT 1[0m
Rendered invoices/show.pdf.prawn (598.9ms)
Completed 500 Internal Server Error in 1006ms
ActionView::Template::Error (undefined method `make_table' for #<Prawn::Document:0xb64fedac>):
92: [@invoice.id,@invoice.business_id,@invoice.purchase_order_id,@invoice.invoice_date, @invoice.due_date]
93: ]
94:
95: header_table = pdf.make_table(items, :header => true) do
96: cells.size = 9
97: cells.padding = 2
98: row(0).style(:font_style => :bold, :background_color => 'C3D9FF')
app/views/invoices/show.pdf.prawn:95
app/views/invoices/show.pdf.prawn:54:in `_app_views_invoices_show_pdf_prawn__535227192__618064968_0'
app/controllers/invoices_controller.rb:29:in `show'
Rendered /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/middleware/templates/rescues/_trace.erb (2.7ms)
[1m[35mSQL (1.3ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.5ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.5ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.6ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.5ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.5ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.5ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.5ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.6ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.6ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.5ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.6ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.6ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mInvoiceItem Load (0.2ms)[0m [1mSELECT SUM(qty*cost) as total_cost FROM "invoice_items" WHERE ("invoice_items".invoice_id = 23)[0m
[1m[35mInvoiceItem Load (0.2ms)[0m SELECT SUM(qty*(cost*1)) as total_cost FROM "invoice_items" WHERE "invoice_items"."taxable" = 't' AND ("invoice_items".invoice_id = 23)
[1m[36mInvoiceItem Load (0.3ms)[0m [1mSELECT SUM(qty*cost) as total_cost FROM "invoice_items" WHERE "invoice_items"."taxable" IN ('f', NULL) AND ("invoice_items".invoice_id = 23)[0m
[1m[35mInvoiceItem Load (0.2ms)[0m SELECT SUM(qty*(cost*1)) as total_cost FROM "invoice_items" WHERE "invoice_items"."taxable" = 't' AND ("invoice_items".invoice_id = 23)
[1m[36mInvoiceItem Load (0.2ms)[0m [1mSELECT SUM(qty*cost) as total_cost FROM "invoice_items" WHERE "invoice_items"."taxable" IN ('f', NULL) AND ("invoice_items".invoice_id = 23)[0m
[1m[35mSQL (0.6ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.5ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.4ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.4ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.4ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.4ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.4ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.6ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.4ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.5ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.5ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.6ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.5ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.5ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.5ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mInvoiceItem Load (0.2ms)[0m [1mSELECT SUM(qty*cost) as total_cost FROM "invoice_items" WHERE ("invoice_items".invoice_id = 23)[0m
[1m[35mInvoiceItem Load (0.2ms)[0m SELECT SUM(qty*(cost*1)) as total_cost FROM "invoice_items" WHERE "invoice_items"."taxable" = 't' AND ("invoice_items".invoice_id = 23)
[1m[36mInvoiceItem Load (0.2ms)[0m [1mSELECT SUM(qty*cost) as total_cost FROM "invoice_items" WHERE "invoice_items"."taxable" IN ('f', NULL) AND ("invoice_items".invoice_id = 23)[0m
[1m[35mInvoiceItem Load (0.2ms)[0m SELECT SUM(qty*(cost*1)) as total_cost FROM "invoice_items" WHERE "invoice_items"."taxable" = 't' AND ("invoice_items".invoice_id = 23)
[1m[36mInvoiceItem Load (0.2ms)[0m [1mSELECT SUM(qty*cost) as total_cost FROM "invoice_items" WHERE "invoice_items"."taxable" IN ('f', NULL) AND ("invoice_items".invoice_id = 23)[0m
Rendered /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (85.6ms)
Rendered /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (96.2ms)
/home/nehal/Projects/VisioInvoiceV3/app/views/invoices/show.pdf.prawn:36: warning: don't put space before argument parentheses
Started GET "/invoices/23.pdf" for 127.0.0.1 at Mon Oct 10 21:11:16 +0100 2011
Processing by InvoicesController#show as PDF
Parameters: {"id"=>"23"}
[1m[35mUser Load (0.5ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 15 LIMIT 1
[1m[36mCompany Load (0.3ms)[0m [1mSELECT "companies".* FROM "companies" WHERE "companies"."name" = 'foo' LIMIT 1[0m
[1m[35mSQL (0.6ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mInvoice Load (0.5ms)[0m [1mSELECT "invoices".* FROM "invoices" INNER JOIN "clients" ON "invoices".client_id = "clients".id WHERE "invoices"."id" = 23 AND (("clients".company_id = 13)) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m SELECT COUNT(*) FROM "invoice_items" WHERE ("invoice_items".invoice_id = 23)
[1m[36mRole Load (0.3ms)[0m [1mSELECT "roles".* FROM "roles" INNER JOIN "roles_users" ON "roles".id = "roles_users".role_id WHERE "roles"."name" = 'Admin' AND ("roles_users".user_id = 15 ) LIMIT 1[0m
[1m[35mSetting Load (0.4ms)[0m SELECT "settings".* FROM "settings" WHERE ("settings".company_id = 13) LIMIT 1
[1m[36mClient Load (0.4ms)[0m [1mSELECT "clients".* FROM "clients" WHERE "clients"."id" = 1 LIMIT 1[0m
Rendered invoices/show.pdf.prawn (583.3ms)
Completed 500 Internal Server Error in 975ms
ActionView::Template::Error (undefined method `make_table' for #<Prawn::Document:0xb651edb4>):
92: [@invoice.id,@invoice.business_id,@invoice.purchase_order_id,@invoice.invoice_date, @invoice.due_date]
93: ]
94:
95: header_table = pdf.make_table(items, :header => true) do
96: cells.size = 9
97: cells.padding = 2
98: row(0).style(:font_style => :bold, :background_color => 'C3D9FF')
app/views/invoices/show.pdf.prawn:95
app/views/invoices/show.pdf.prawn:54:in `_app_views_invoices_show_pdf_prawn__535227192__617774048_0'
app/controllers/invoices_controller.rb:29:in `show'
Rendered /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/middleware/templates/rescues/_trace.erb (2.4ms)
[1m[35mSQL (1.4ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.5ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.5ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.5ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.6ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.5ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.5ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.6ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.5ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.6ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.5ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mInvoiceItem Load (0.2ms)[0m [1mSELECT SUM(qty*cost) as total_cost FROM "invoice_items" WHERE ("invoice_items".invoice_id = 23)[0m
[1m[35mInvoiceItem Load (0.2ms)[0m SELECT SUM(qty*(cost*1)) as total_cost FROM "invoice_items" WHERE "invoice_items"."taxable" = 't' AND ("invoice_items".invoice_id = 23)
[1m[36mInvoiceItem Load (0.3ms)[0m [1mSELECT SUM(qty*cost) as total_cost FROM "invoice_items" WHERE "invoice_items"."taxable" IN ('f', NULL) AND ("invoice_items".invoice_id = 23)[0m
[1m[35mInvoiceItem Load (0.2ms)[0m SELECT SUM(qty*(cost*1)) as total_cost FROM "invoice_items" WHERE "invoice_items"."taxable" = 't' AND ("invoice_items".invoice_id = 23)
[1m[36mInvoiceItem Load (0.2ms)[0m [1mSELECT SUM(qty*cost) as total_cost FROM "invoice_items" WHERE "invoice_items"."taxable" IN ('f', NULL) AND ("invoice_items".invoice_id = 23)[0m
[1m[35mSQL (0.5ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.5ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.4ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.5ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.5ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.6ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.5ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.5ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.5ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.6ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.4ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.5ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mSQL (0.5ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m[35mSQL (0.6ms)[0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[1m[36mInvoiceItem Load (0.2ms)[0m [1mSELECT SUM(qty*cost) as total_cost FROM "invoice_items" WHERE ("invoice_items".invoice_id = 23)[0m
[1m[35mInvoiceItem Load (0.2ms)[0m SELECT SUM(qty*(cost*1)) as total_cost FROM "invoice_items" WHERE "invoice_items"."taxable" = 't' AND ("invoice_items".invoice_id = 23)
[1m[36mInvoiceItem Load (0.2ms)[0m [1mSELECT SUM(qty*cost) as total_cost FROM "invoice_items" WHERE "invoice_items"."taxable" IN ('f', NULL) AND ("invoice_items".invoice_id = 23)[0m
[1m[35mInvoiceItem Load (0.2ms)[0m SELECT SUM(qty*(cost*1)) as total_cost FROM "invoice_items" WHERE "invoice_items"."taxable" = 't' AND ("invoice_items".invoice_id = 23)
[1m[36mInvoiceItem Load (0.2ms)[0m [1mSELECT SUM(qty*cost) as total_cost FROM "invoice_items" WHERE "invoice_items"."taxable" IN ('f', NULL) AND ("invoice_items".invoice_id = 23)[0m
Rendered /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (85.1ms)
Rendered /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (95.6ms)
^C[2011-10-10 21:17:48] INFO going to shutdown ...
[2011-10-10 21:17:48] INFO WEBrick::HTTPServer#start done.
Exiting
]0;nehal@nehal-laptop: ~/Projects/VisioInvoiceV3nehal@nehal-laptop:~/Projects/VisioInvoiceV3$ rails serverbundle install
Fetching source index for http://rubygems.org/
[31mYou have requested: