Commit 0e12be70d3a7946fbc46fc26c9500eff8c8976f3

Added a form to submit new posts, specified the form should have a single input and submit button, implemented Posts#create, specified that a POST to #create should create a new Post.

Commit diff

app/controllers/posts.rb

 
55 render
66 end
77
8end
8 def create
9 Post.create!( :body => params[:body] )
10 redirect url( :action => "index" )
11 end
12
13end
toggle raw diff

app/views/posts/index.html.erb

 
44<p>Recent Posts:</p>
55<div id="posts" class="container">
66 <%= partial( "/shared/post", :with => @posts ) %>
7</div>
7</div>
8
9<p>Post Something:</p>
10<% form_tag( :action => url( :controller => "posts", :action => "create" ) ) do %>
11 <%= text_field( :name => "body", :size => 40 ) %>
12 <%= submit_button( "Post Message!" ) %>
13<% end %>
toggle raw diff

log/merb_test.log

 
375375 WHERE `id` = 30
376376
377377 ~ SQL (0.000701) COMMIT
378 ~ Loaded TEST Environment...
379 ~ loading gem 'merb_activerecord' from ...
380 ~ loading gem 'merb_helpers' from ...
381 ~ loading gem 'activerecord' from ...
382 ~ Connecting to database...
383 ~ Compiling routes...
384 ~ Using 'share-nothing' cookie sessions (4kb limit per client)
385 ~ SQL (0.000227) SET NAMES 'utf8'
386 ~ SQL (0.000094) SET SQL_AUTO_IS_NULL=0
387 ~ Post Load (0.000406) SELECT * FROM `posts` ORDER BY created_at DESC
388 ~ {:action_time=>0.055376, :before_filters_time=>1.3e-05, :after_filters_time=>1.1e-05}
389 ~ Loaded TEST Environment...
390 ~ loading gem 'merb_activerecord' from ...
391 ~ loading gem 'merb_helpers' from ...
392 ~ loading gem 'activerecord' from ...
393 ~ Connecting to database...
394 ~ Compiling routes...
395 ~ Using 'share-nothing' cookie sessions (4kb limit per client)
396 ~ SQL (0.000218) SET NAMES 'utf8'
397 ~ SQL (0.000094) SET SQL_AUTO_IS_NULL=0
398 ~ Post Load (0.000442) SELECT * FROM `posts` ORDER BY created_at DESC
399 ~ {:action_time=>0.053774, :before_filters_time=>1.1e-05, :after_filters_time=>1.1e-05}
400 ~ Loaded TEST Environment...
401 ~ loading gem 'merb_activerecord' from ...
402 ~ loading gem 'merb_helpers' from ...
403 ~ loading gem 'activerecord' from ...
404 ~ Connecting to database...
405 ~ Compiling routes...
406 ~ Using 'share-nothing' cookie sessions (4kb limit per client)
407 ~ SQL (0.000295) SET NAMES 'utf8'
408 ~ SQL (0.000115) SET SQL_AUTO_IS_NULL=0
409 ~ Post Load (0.000477) SELECT * FROM `posts` ORDER BY created_at DESC
410 ~ {:action_time=>0.049128, :before_filters_time=>1.7e-05, :after_filters_time=>1.3e-05}
411 ~ Redirecting to: /posts/index
412 ~ {:action_time=>0.000388, :before_filters_time=>1.3e-05, :after_filters_time=>1.1e-05}
413 ~ Loaded TEST Environment...
414 ~ loading gem 'merb_activerecord' from ...
415 ~ loading gem 'merb_helpers' from ...
416 ~ loading gem 'activerecord' from ...
417 ~ Connecting to database...
418 ~ Compiling routes...
419 ~ Using 'share-nothing' cookie sessions (4kb limit per client)
420 ~ SQL (0.000313) SET NAMES 'utf8'
421 ~ SQL (0.000131) SET SQL_AUTO_IS_NULL=0
422 ~ Post Load (0.000528) SELECT * FROM `posts` ORDER BY created_at DESC
423 ~ {:action_time=>0.05251, :before_filters_time=>1.2e-05, :after_filters_time=>1.2e-05}
424 ~ Redirecting to: /posts/index
425 ~ {:action_time=>0.000386, :before_filters_time=>1.4e-05, :after_filters_time=>1.1e-05}
426 ~ Loaded TEST Environment...
427 ~ loading gem 'merb_activerecord' from ...
428 ~ loading gem 'merb_helpers' from ...
429 ~ loading gem 'activerecord' from ...
430 ~ Connecting to database...
431 ~ Compiling routes...
432 ~ Using 'share-nothing' cookie sessions (4kb limit per client)
433 ~ SQL (0.000224) SET NAMES 'utf8'
434 ~ SQL (0.000093) SET SQL_AUTO_IS_NULL=0
435 ~ Post Load (0.000374) SELECT * FROM `posts` ORDER BY created_at DESC
436 ~ {:action_time=>0.048818, :before_filters_time=>1.1e-05, :after_filters_time=>9.0e-06}
437 ~ Redirecting to: /posts/index
438 ~ {:action_time=>0.000343, :before_filters_time=>1.3e-05, :after_filters_time=>1.0e-05}
439 ~ Post Columns (0.002375) SHOW FIELDS FROM `posts`
440 ~ SQL (0.000154) BEGIN
441 ~ Post Create (0.000257) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:16:48', 'Merb Rawks', '2008-04-16 02:16:48')
442 ~ SQL (0.000495) COMMIT
443 ~ SQL (0.000100) BEGIN
444 ~ Post Create (0.000194) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:16:48', 'Like the Hawks', '2008-04-16 02:16:48')
445 ~ SQL (0.000441) COMMIT
446 ~ Post Load (0.000377) SELECT * FROM `posts` 
447 ~ SQL (0.000089) BEGIN
448 ~ Post Destroy (0.000236)  DELETE FROM `posts`
449 WHERE `id` = 31
450
451 ~ SQL (0.000506) COMMIT
452 ~ SQL (0.000134) BEGIN
453 ~ Post Destroy (0.000192)  DELETE FROM `posts`
454 WHERE `id` = 32
455
456 ~ SQL (0.000395) COMMIT
457 ~ SQL (0.000106) BEGIN
458 ~ Post Create (0.000284) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:16:48', 'Merb Rawks', '2008-04-16 02:16:48')
459 ~ SQL (0.000483) COMMIT
460 ~ SQL (0.000076) BEGIN
461 ~ Post Create (0.000155) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:16:48', 'Like the Hawks', '2008-04-16 02:16:48')
462 ~ SQL (0.000462) COMMIT
463 ~ Post Load (0.001857) SELECT * FROM `posts` 
464 ~ SQL (0.000264) BEGIN
465 ~ Post Destroy (0.000449)  DELETE FROM `posts`
466 WHERE `id` = 33
467
468 ~ SQL (0.029421) COMMIT
469 ~ SQL (0.000124) BEGIN
470 ~ Post Destroy (0.000306)  DELETE FROM `posts`
471 WHERE `id` = 34
472
473 ~ SQL (0.000441) COMMIT
474 ~ SQL (0.000152) BEGIN
475 ~ Post Create (0.001992) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:16:48', 'Merb Rawks', '2008-04-16 02:16:48')
476 ~ SQL (0.000493) COMMIT
477 ~ SQL (0.000097) BEGIN
478 ~ Post Create (0.000238) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:16:48', 'Like the Hawks', '2008-04-16 02:16:48')
479 ~ SQL (0.000416) COMMIT
480 ~ Post Load (0.000397) SELECT * FROM `posts` 
481 ~ SQL (0.000103) BEGIN
482 ~ Post Destroy (0.000236)  DELETE FROM `posts`
483 WHERE `id` = 35
484
485 ~ SQL (0.000444) COMMIT
486 ~ SQL (0.000086) BEGIN
487 ~ Post Destroy (0.000247)  DELETE FROM `posts`
488 WHERE `id` = 36
489
490 ~ SQL (0.000445) COMMIT
491 ~ SQL (0.000223) BEGIN
492 ~ Post Create (0.000478) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:16:48', 'Merb Rawks', '2008-04-16 02:16:48')
493 ~ SQL (0.000459) COMMIT
494 ~ SQL (0.000098) BEGIN
495 ~ Post Create (0.000226) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:16:48', 'Like the Hawks', '2008-04-16 02:16:48')
496 ~ SQL (0.000425) COMMIT
497 ~ Post Load (0.000533) SELECT * FROM `posts` 
498 ~ SQL (0.000100) BEGIN
499 ~ Post Destroy (0.000258)  DELETE FROM `posts`
500 WHERE `id` = 37
501
502 ~ SQL (0.000582) COMMIT
503 ~ SQL (0.000086) BEGIN
504 ~ Post Destroy (0.000200)  DELETE FROM `posts`
505 WHERE `id` = 38
506
507 ~ SQL (0.000492) COMMIT
508 ~ Loaded TEST Environment...
509 ~ loading gem 'merb_activerecord' from ...
510 ~ loading gem 'merb_helpers' from ...
511 ~ loading gem 'activerecord' from ...
512 ~ Connecting to database...
513 ~ Compiling routes...
514 ~ Using 'share-nothing' cookie sessions (4kb limit per client)
515 ~ SQL (0.000222) SET NAMES 'utf8'
516 ~ SQL (0.000095) SET SQL_AUTO_IS_NULL=0
517 ~ Post Load (0.000375) SELECT * FROM `posts` ORDER BY created_at DESC
518 ~ {:action_time=>0.050473, :before_filters_time=>1.2e-05, :after_filters_time=>1.0e-05}
519 ~ Redirecting to: /posts/index
520 ~ {:action_time=>0.000343, :before_filters_time=>1.2e-05, :after_filters_time=>9.0e-06}
521 ~ Post Columns (0.002291) SHOW FIELDS FROM `posts`
522 ~ SQL (0.000164) BEGIN
523 ~ Post Create (0.000258) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:17:50', 'Merb Rawks', '2008-04-16 02:17:50')
524 ~ SQL (0.000716) COMMIT
525 ~ SQL (0.000102) BEGIN
526 ~ Post Create (0.000218) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:17:50', 'Like the Hawks', '2008-04-16 02:17:50')
527 ~ SQL (0.000482) COMMIT
528 ~ Post Load (0.000319) SELECT * FROM `posts` 
529 ~ SQL (0.000077) BEGIN
530 ~ Post Destroy (0.000199)  DELETE FROM `posts`
531 WHERE `id` = 39
532
533 ~ SQL (0.000454) COMMIT
534 ~ SQL (0.000131) BEGIN
535 ~ Post Destroy (0.000149)  DELETE FROM `posts`
536 WHERE `id` = 40
537
538 ~ SQL (0.000359) COMMIT
539 ~ SQL (0.000119) BEGIN
540 ~ Post Create (0.000207) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:17:50', 'Merb Rawks', '2008-04-16 02:17:50')
541 ~ SQL (0.000450) COMMIT
542 ~ SQL (0.000089) BEGIN
543 ~ Post Create (0.000152) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:17:50', 'Like the Hawks', '2008-04-16 02:17:50')
544 ~ SQL (0.000392) COMMIT
545 ~ Post Load (0.000335) SELECT * FROM `posts` 
546 ~ SQL (0.000076) BEGIN
547 ~ Post Destroy (0.000202)  DELETE FROM `posts`
548 WHERE `id` = 41
549
550 ~ SQL (0.000490) COMMIT
551 ~ SQL (0.000130) BEGIN
552 ~ Post Destroy (0.000150)  DELETE FROM `posts`
553 WHERE `id` = 42
554
555 ~ SQL (0.000361) COMMIT
556 ~ SQL (0.000110) BEGIN
557 ~ Post Create (0.000212) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:17:50', 'Merb Rawks', '2008-04-16 02:17:50')
558 ~ SQL (0.000455) COMMIT
559 ~ SQL (0.000087) BEGIN
560 ~ Post Create (0.000158) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:17:50', 'Like the Hawks', '2008-04-16 02:17:50')
561 ~ SQL (0.000437) COMMIT
562 ~ Post Load (0.000283) SELECT * FROM `posts` 
563 ~ SQL (0.000081) BEGIN
564 ~ Post Destroy (0.000205)  DELETE FROM `posts`
565 WHERE `id` = 43
566
567 ~ SQL (0.000482) COMMIT
568 ~ SQL (0.000138) BEGIN
569 ~ Post Destroy (0.000159)  DELETE FROM `posts`
570 WHERE `id` = 44
571
572 ~ SQL (0.000357) COMMIT
573 ~ SQL (0.000104) BEGIN
574 ~ Post Create (0.000215) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:17:50', 'Merb Rawks', '2008-04-16 02:17:50')
575 ~ SQL (0.000411) COMMIT
576 ~ SQL (0.000095) BEGIN
577 ~ Post Create (0.000206) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:17:50', 'Like the Hawks', '2008-04-16 02:17:50')
578 ~ SQL (0.000391) COMMIT
579 ~ Post Load (0.000312) SELECT * FROM `posts` 
580 ~ SQL (0.000077) BEGIN
581 ~ Post Destroy (0.000197)  DELETE FROM `posts`
582 WHERE `id` = 45
583
584 ~ SQL (0.000489) COMMIT
585 ~ SQL (0.000153) BEGIN
586 ~ Post Destroy (0.000160)  DELETE FROM `posts`
587 WHERE `id` = 46
588
589 ~ SQL (0.000430) COMMIT
590 ~ Loaded TEST Environment...
591 ~ loading gem 'merb_activerecord' from ...
592 ~ loading gem 'merb_helpers' from ...
593 ~ loading gem 'activerecord' from ...
594 ~ Connecting to database...
595 ~ Compiling routes...
596 ~ Using 'share-nothing' cookie sessions (4kb limit per client)
597 ~ SQL (0.000276) SET NAMES 'utf8'
598 ~ SQL (0.000096) SET SQL_AUTO_IS_NULL=0
599 ~ Post Load (0.000376) SELECT * FROM `posts` ORDER BY created_at DESC
600 ~ {:action_time=>0.049255, :before_filters_time=>1.1e-05, :after_filters_time=>9.0e-06}
601 ~ Post Columns (0.002334) SHOW FIELDS FROM `posts`
602 ~ SQL (0.000149) BEGIN
603 ~ Post Create (0.000246) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:27:01', 'Merb Rawks', '2008-04-16 02:27:01')
604 ~ SQL (0.000429) COMMIT
605 ~ SQL (0.000101) BEGIN
606 ~ Post Create (0.000178) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:27:01', 'Like the Hawks', '2008-04-16 02:27:01')
607 ~ SQL (0.000502) COMMIT
608 ~ Post Load (0.000304) SELECT * FROM `posts` 
609 ~ SQL (0.000077) BEGIN
610 ~ Post Destroy (0.000230)  DELETE FROM `posts`
611 WHERE `id` = 47
612
613 ~ SQL (0.000525) COMMIT
614 ~ SQL (0.000137) BEGIN
615 ~ Post Destroy (0.000242)  DELETE FROM `posts`
616 WHERE `id` = 48
617
618 ~ SQL (0.000388) COMMIT
619 ~ SQL (0.000117) BEGIN
620 ~ Post Create (0.000260) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:27:01', 'Merb Rawks', '2008-04-16 02:27:01')
621 ~ SQL (0.000444) COMMIT
622 ~ SQL (0.000095) BEGIN
623 ~ Post Create (0.000166) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:27:01', 'Like the Hawks', '2008-04-16 02:27:01')
624 ~ SQL (0.000429) COMMIT
625 ~ Post Load (0.000513) SELECT * FROM `posts` 
626 ~ SQL (0.000120) BEGIN
627 ~ Post Destroy (0.000311)  DELETE FROM `posts`
628 WHERE `id` = 49
629
630 ~ SQL (0.000693) COMMIT
631 ~ SQL (0.000134) BEGIN
632 ~ Post Destroy (0.000310)  DELETE FROM `posts`
633 WHERE `id` = 50
634
635 ~ SQL (0.000602) COMMIT
636 ~ SQL (0.000112) BEGIN
637 ~ Post Create (0.000225) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:27:01', 'Merb Rawks', '2008-04-16 02:27:01')
638 ~ SQL (0.000481) COMMIT
639 ~ SQL (0.000080) BEGIN
640 ~ Post Create (0.000168) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:27:01', 'Like the Hawks', '2008-04-16 02:27:01')
641 ~ SQL (0.000468) COMMIT
642 ~ Post Load (0.000658) SELECT * FROM `posts` 
643 ~ SQL (0.000094) BEGIN
644 ~ Post Destroy (0.000265)  DELETE FROM `posts`
645 WHERE `id` = 51
646
647 ~ SQL (0.000579) COMMIT
648 ~ SQL (0.000144) BEGIN
649 ~ Post Destroy (0.000181)  DELETE FROM `posts`
650 WHERE `id` = 52
651
652 ~ SQL (0.000461) COMMIT
653 ~ SQL (0.000111) BEGIN
654 ~ Post Create (0.000204) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:27:01', 'Merb Rawks', '2008-04-16 02:27:01')
655 ~ SQL (0.000457) COMMIT
656 ~ SQL (0.000082) BEGIN
657 ~ Post Create (0.000161) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:27:01', 'Like the Hawks', '2008-04-16 02:27:01')
658 ~ SQL (0.000409) COMMIT
659 ~ Post Load (0.000296) SELECT * FROM `posts` 
660 ~ SQL (0.000075) BEGIN
661 ~ Post Destroy (0.000194)  DELETE FROM `posts`
662 WHERE `id` = 53
663
664 ~ SQL (0.000469) COMMIT
665 ~ SQL (0.000127) BEGIN
666 ~ Post Destroy (0.000176)  DELETE FROM `posts`
667 WHERE `id` = 54
668
669 ~ SQL (0.000360) COMMIT
670 ~ Loaded TEST Environment...
671 ~ loading gem 'merb_activerecord' from ...
672 ~ loading gem 'merb_helpers' from ...
673 ~ loading gem 'activerecord' from ...
674 ~ Connecting to database...
675 ~ Compiling routes...
676 ~ Using 'share-nothing' cookie sessions (4kb limit per client)
677 ~ SQL (0.000222) SET NAMES 'utf8'
678 ~ SQL (0.000098) SET SQL_AUTO_IS_NULL=0
679 ~ Post Load (0.000349) SELECT * FROM `posts` ORDER BY created_at DESC
680 ~ {:action_time=>0.045408, :before_filters_time=>1.2e-05, :after_filters_time=>1.1e-05}
681 ~ Post Columns (0.002055) SHOW FIELDS FROM `posts`
682 ~ SQL (0.000476) SELECT count(*) AS count_all FROM `posts` 
683 ~ Redirecting to: /posts/index
684 ~ {:action_time=>0.00033, :before_filters_time=>1.4e-05, :after_filters_time=>1.0e-05}
685 ~ SQL (0.000206) SELECT count(*) AS count_all FROM `posts` 
686 ~ SQL (0.000393) BEGIN
687 ~ Post Create (0.000280) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:27:11', 'Merb Rawks', '2008-04-16 02:27:11')
688 ~ SQL (0.000451) COMMIT
689 ~ SQL (0.000089) BEGIN
690 ~ Post Create (0.000248) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:27:11', 'Like the Hawks', '2008-04-16 02:27:11')
691 ~ SQL (0.000381) COMMIT
692 ~ Post Load (0.000298) SELECT * FROM `posts` 
693 ~ SQL (0.000075) BEGIN
694 ~ Post Destroy (0.000196)  DELETE FROM `posts`
695 WHERE `id` = 55
696
697 ~ SQL (0.000459) COMMIT
698 ~ SQL (0.000127) BEGIN
699 ~ Post Destroy (0.000144)  DELETE FROM `posts`
700 WHERE `id` = 56
701
702 ~ SQL (0.000377) COMMIT
703 ~ SQL (0.000102) BEGIN
704 ~ Post Create (0.000202) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:27:11', 'Merb Rawks', '2008-04-16 02:27:11')
705 ~ SQL (0.000550) COMMIT
706 ~ SQL (0.000081) BEGIN
707 ~ Post Create (0.000173) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:27:11', 'Like the Hawks', '2008-04-16 02:27:11')
708 ~ SQL (0.000382) COMMIT
709 ~ Post Load (0.000521) SELECT * FROM `posts` 
710 ~ SQL (0.000104) BEGIN
711 ~ Post Destroy (0.000292)  DELETE FROM `posts`
712 WHERE `id` = 57
713
714 ~ SQL (0.000473) COMMIT
715 ~ SQL (0.000131) BEGIN
716 ~ Post Destroy (0.000152)  DELETE FROM `posts`
717 WHERE `id` = 58
718
719 ~ SQL (0.000399) COMMIT
720 ~ SQL (0.000115) BEGIN
721 ~ Post Create (0.000215) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:27:11', 'Merb Rawks', '2008-04-16 02:27:11')
722 ~ SQL (0.000445) COMMIT
723 ~ SQL (0.000098) BEGIN
724 ~ Post Create (0.000148) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:27:11', 'Like the Hawks', '2008-04-16 02:27:11')
725 ~ SQL (0.000386) COMMIT
726 ~ Post Load (0.000261) SELECT * FROM `posts` 
727 ~ SQL (0.000072) BEGIN
728 ~ Post Destroy (0.000188)  DELETE FROM `posts`
729 WHERE `id` = 59
730
731 ~ SQL (0.000439) COMMIT
732 ~ SQL (0.000129) BEGIN
733 ~ Post Destroy (0.000138)  DELETE FROM `posts`
734 WHERE `id` = 60
735
736 ~ SQL (0.000403) COMMIT
737 ~ SQL (0.000138) BEGIN
738 ~ Post Create (0.001021) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:27:11', 'Merb Rawks', '2008-04-16 02:27:11')
739 ~ SQL (0.000489) COMMIT
740 ~ SQL (0.000087) BEGIN
741 ~ Post Create (0.000217) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:27:11', 'Like the Hawks', '2008-04-16 02:27:11')
742 ~ SQL (0.000424) COMMIT
743 ~ Post Load (0.000309) SELECT * FROM `posts` 
744 ~ SQL (0.000076) BEGIN
745 ~ Post Destroy (0.000198)  DELETE FROM `posts`
746 WHERE `id` = 61
747
748 ~ SQL (0.000430) COMMIT
749 ~ SQL (0.000131) BEGIN
750 ~ Post Destroy (0.000148)  DELETE FROM `posts`
751 WHERE `id` = 62
752
753 ~ SQL (0.000391) COMMIT
754 ~ Loaded TEST Environment...
755 ~ loading gem 'merb_activerecord' from ...
756 ~ loading gem 'merb_helpers' from ...
757 ~ loading gem 'activerecord' from ...
758 ~ Connecting to database...
759 ~ Compiling routes...
760 ~ Using 'share-nothing' cookie sessions (4kb limit per client)
761 ~ SQL (0.000230) SET NAMES 'utf8'
762 ~ SQL (0.000094) SET SQL_AUTO_IS_NULL=0
763 ~ Post Load (0.000390) SELECT * FROM `posts` ORDER BY created_at DESC
764 ~ {:action_time=>0.060083, :before_filters_time=>1.3e-05, :after_filters_time=>1.1e-05}
765 ~ Post Columns (0.002021) SHOW FIELDS FROM `posts`
766 ~ SQL (0.000209) SELECT count(*) AS count_all FROM `posts` 
767 ~ Redirecting to: /posts/index
768 ~ {:action_time=>0.000359, :before_filters_time=>1.5e-05, :after_filters_time=>1.2e-05}
769 ~ SQL (0.000256) SELECT count(*) AS count_all FROM `posts` 
770 ~ SQL (0.000166) BEGIN
771 ~ Post Create (0.000386) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:37:57', 'Merb Rawks', '2008-04-16 02:37:57')
772 ~ SQL (0.000467) COMMIT
773 ~ SQL (0.000079) BEGIN
774 ~ Post Create (0.000223) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:37:57', 'Like the Hawks', '2008-04-16 02:37:57')
775 ~ SQL (0.000383) COMMIT
776 ~ Post Load (0.000324) SELECT * FROM `posts` 
777 ~ SQL (0.000076) BEGIN
778 ~ Post Destroy (0.000212)  DELETE FROM `posts`
779 WHERE `id` = 63
780
781 ~ SQL (0.000449) COMMIT
782 ~ SQL (0.000126) BEGIN
783 ~ Post Destroy (0.000146)  DELETE FROM `posts`
784 WHERE `id` = 64
785
786 ~ SQL (0.000378) COMMIT
787 ~ SQL (0.000109) BEGIN
788 ~ Post Create (0.000263) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:37:57', 'Merb Rawks', '2008-04-16 02:37:57')
789 ~ SQL (0.000442) COMMIT
790 ~ SQL (0.000111) BEGIN
791 ~ Post Create (0.000278) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:37:57', 'Like the Hawks', '2008-04-16 02:37:57')
792 ~ SQL (0.000489) COMMIT
793 ~ Post Load (0.000395) SELECT * FROM `posts` 
794 ~ SQL (0.000097) BEGIN
795 ~ Post Destroy (0.000260)  DELETE FROM `posts`
796 WHERE `id` = 65
797
798 ~ SQL (0.000502) COMMIT
799 ~ SQL (0.000096) BEGIN
800 ~ Post Destroy (0.000255)  DELETE FROM `posts`
801 WHERE `id` = 66
802
803 ~ SQL (0.000467) COMMIT
804 ~ SQL (0.000112) BEGIN
805 ~ Post Create (0.000214) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:37:57', 'Merb Rawks', '2008-04-16 02:37:57')
806 ~ SQL (0.000442) COMMIT
807 ~ SQL (0.000124) BEGIN
808 ~ Post Create (0.000158) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:37:57', 'Like the Hawks', '2008-04-16 02:37:57')
809 ~ SQL (0.000353) COMMIT
810 ~ Post Load (0.000262) SELECT * FROM `posts` 
811 ~ SQL (0.000098) BEGIN
812 ~ Post Destroy (0.000256)  DELETE FROM `posts`
813 WHERE `id` = 67
814
815 ~ SQL (0.000458) COMMIT
816 ~ SQL (0.000134) BEGIN
817 ~ Post Destroy (0.000169)  DELETE FROM `posts`
818 WHERE `id` = 68
819
820 ~ SQL (0.000387) COMMIT
821 ~ SQL (0.000173) BEGIN
822 ~ Post Create (0.000268) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:37:57', 'Merb Rawks', '2008-04-16 02:37:57')
823 ~ SQL (0.000453) COMMIT
824 ~ SQL (0.000095) BEGIN
825 ~ Post Create (0.000191) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:37:57', 'Like the Hawks', '2008-04-16 02:37:57')
826 ~ SQL (0.000418) COMMIT
827 ~ Post Load (0.000368) SELECT * FROM `posts` 
828 ~ SQL (0.000078) BEGIN
829 ~ Post Destroy (0.000209)  DELETE FROM `posts`
830 WHERE `id` = 69
831
832 ~ SQL (0.000567) COMMIT
833 ~ SQL (0.000129) BEGIN
834 ~ Post Destroy (0.000152)  DELETE FROM `posts`
835 WHERE `id` = 70
836
837 ~ SQL (0.000382) COMMIT
838 ~ Loaded TEST Environment...
839 ~ loading gem 'merb_activerecord' from ...
840 ~ loading gem 'merb_helpers' from ...
841 ~ loading gem 'activerecord' from ...
842 ~ Connecting to database...
843 ~ Compiling routes...
844 ~ Using 'share-nothing' cookie sessions (4kb limit per client)
845 ~ SQL (0.000248) SET NAMES 'utf8'
846 ~ SQL (0.000101) SET SQL_AUTO_IS_NULL=0
847 ~ Post Load (0.000444) SELECT * FROM `posts` ORDER BY created_at DESC
848 ~ {:action_time=>0.046702, :before_filters_time=>1.2e-05, :after_filters_time=>9.0e-06}
849 ~ Post Columns (0.002196) SHOW FIELDS FROM `posts`
850 ~ SQL (0.000214) SELECT count(*) AS count_all FROM `posts` 
851 ~ Redirecting to: /posts/index
852 ~ {:action_time=>0.000657, :before_filters_time=>0.000104, :after_filters_time=>1.3e-05}
853 ~ SQL (0.000239) SELECT count(*) AS count_all FROM `posts` 
854 ~ Loaded TEST Environment...
855 ~ loading gem 'merb_activerecord' from ...
856 ~ loading gem 'merb_helpers' from ...
857 ~ loading gem 'activerecord' from ...
858 ~ Connecting to database...
859 ~ Compiling routes...
860 ~ Using 'share-nothing' cookie sessions (4kb limit per client)
861 ~ SQL (0.000227) SET NAMES 'utf8'
862 ~ SQL (0.000096) SET SQL_AUTO_IS_NULL=0
863 ~ Post Load (0.000399) SELECT * FROM `posts` ORDER BY created_at DESC
864 ~ {:action_time=>0.050379, :before_filters_time=>1.2e-05, :after_filters_time=>9.0e-06}
865 ~ Post Columns (0.002370) SHOW FIELDS FROM `posts`
866 ~ SQL (0.000222) SELECT count(*) AS count_all FROM `posts` 
867 ~ Loaded TEST Environment...
868 ~ loading gem 'merb_activerecord' from ...
869 ~ loading gem 'merb_helpers' from ...
870 ~ loading gem 'activerecord' from ...
871 ~ Connecting to database...
872 ~ Compiling routes...
873 ~ Using 'share-nothing' cookie sessions (4kb limit per client)
874 ~ SQL (0.000227) SET NAMES 'utf8'
875 ~ SQL (0.000094) SET SQL_AUTO_IS_NULL=0
876 ~ Post Load (0.000354) SELECT * FROM `posts` ORDER BY created_at DESC
877 ~ {:action_time=>0.045484, :before_filters_time=>1.2e-05, :after_filters_time=>1.0e-05}
878 ~ Post Columns (0.002459) SHOW FIELDS FROM `posts`
879 ~ SQL (0.000896) SELECT count(*) AS count_all FROM `posts` 
880 ~ SQL (0.000141) BEGIN
881 ~ Post Create (0.000240) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:42:10', 'It was a good game though', '2008-04-16 02:42:10')
882 ~ SQL (0.000481) COMMIT
883 ~ Redirecting to: /posts/index
884 ~ {:action_time=>0.004113, :before_filters_time=>1.4e-05, :after_filters_time=>2.1e-05}
885 ~ SQL (0.000240) SELECT count(*) AS count_all FROM `posts` 
886 ~ Loaded TEST Environment...
887 ~ loading gem 'merb_activerecord' from ...
888 ~ loading gem 'merb_helpers' from ...
889 ~ loading gem 'activerecord' from ...
890 ~ Connecting to database...
891 ~ Compiling routes...
892 ~ Using 'share-nothing' cookie sessions (4kb limit per client)
893 ~ SQL (0.000245) SET NAMES 'utf8'
894 ~ SQL (0.000108) SET SQL_AUTO_IS_NULL=0
895 ~ Post Load (0.000423) SELECT * FROM `posts` ORDER BY created_at DESC
896 ~ Post Columns (0.001901) SHOW FIELDS FROM `posts`
897 ~ {:action_time=>0.056393, :before_filters_time=>1.2e-05, :after_filters_time=>1.0e-05}
898 ~ SQL (0.001051) SELECT count(*) AS count_all FROM `posts` 
899 ~ SQL (0.000122) BEGIN
900 ~ Post Create (0.000240) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:42:56', 'It was a good game though', '2008-04-16 02:42:56')
901 ~ SQL (0.000639) COMMIT
902 ~ Redirecting to: /posts/index
903 ~ {:action_time=>0.003136, :before_filters_time=>1.5e-05, :after_filters_time=>2.0e-05}
904 ~ SQL (0.000219) SELECT count(*) AS count_all FROM `posts` 
905 ~ Loaded TEST Environment...
906 ~ loading gem 'merb_activerecord' from ...
907 ~ loading gem 'merb_helpers' from ...
908 ~ loading gem 'activerecord' from ...
909 ~ Connecting to database...
910 ~ Compiling routes...
911 ~ Using 'share-nothing' cookie sessions (4kb limit per client)
912 ~ SQL (0.000228) SET NAMES 'utf8'
913 ~ SQL (0.000093) SET SQL_AUTO_IS_NULL=0
914 ~ Post Load (0.000434) SELECT * FROM `posts` ORDER BY created_at DESC
915 ~ Post Columns (0.001978) SHOW FIELDS FROM `posts`
916 ~ {:action_time=>0.051796, :before_filters_time=>1.2e-05, :after_filters_time=>1.0e-05}
917 ~ SQL (0.000509) SELECT count(*) AS count_all FROM `posts` 
918 ~ SQL (0.000137) BEGIN
919 ~ Post Create (0.000223) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:43:12', 'It was a good game though', '2008-04-16 02:43:12')
920 ~ SQL (0.000540) COMMIT
921 ~ Redirecting to: /posts/index
922 ~ {:action_time=>0.002918, :before_filters_time=>1.4e-05, :after_filters_time=>2.0e-05}
923 ~ SQL (0.000265) SELECT count(*) AS count_all FROM `posts` 
924 ~ Loaded TEST Environment...
925 ~ loading gem 'merb_activerecord' from ...
926 ~ loading gem 'merb_helpers' from ...
927 ~ loading gem 'activerecord' from ...
928 ~ Connecting to database...
929 ~ Compiling routes...
930 ~ Using 'share-nothing' cookie sessions (4kb limit per client)
931 ~ SQL (0.000251) SET NAMES 'utf8'
932 ~ SQL (0.000099) SET SQL_AUTO_IS_NULL=0
933 ~ Post Load (0.000422) SELECT * FROM `posts` ORDER BY created_at DESC
934 ~ Post Columns (0.001805) SHOW FIELDS FROM `posts`
935 ~ {:action_time=>0.05687, :before_filters_time=>1.3e-05, :after_filters_time=>1.0e-05}
936 ~ SQL (0.000331) SELECT count(*) AS count_all FROM `posts` 
937 ~ SQL (0.000104) BEGIN
938 ~ Post Create (0.000312) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:48:53', 'It was a good game though', '2008-04-16 02:48:53')
939 ~ SQL (0.000429) COMMIT
940 ~ Redirecting to: /posts/index
941 ~ {:action_time=>0.004283, :before_filters_time=>1.2e-05, :after_filters_time=>2.3e-05}
942 ~ SQL (0.000396) SELECT count(*) AS count_all FROM `posts` 
943 ~ SQL (0.000143) BEGIN
944 ~ Post Create (0.000239) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:48:53', 'Merb Rawks', '2008-04-16 02:48:53')
945 ~ SQL (0.000519) COMMIT
946 ~ SQL (0.000110) BEGIN
947 ~ Post Create (0.000206) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:48:53', 'Like the Hawks', '2008-04-16 02:48:53')
948 ~ SQL (0.000628) COMMIT
949 ~ Post Load (0.000319) SELECT * FROM `posts` 
950 ~ SQL (0.000075) BEGIN
951 ~ Post Destroy (0.000192)  DELETE FROM `posts`
952 WHERE `id` = 71
953
954 ~ SQL (0.000509) COMMIT
955 ~ SQL (0.000130) BEGIN
956 ~ Post Destroy (0.000149)  DELETE FROM `posts`
957 WHERE `id` = 72
958
959 ~ SQL (0.000415) COMMIT
960 ~ SQL (0.000124) BEGIN
961 ~ Post Destroy (0.000142)  DELETE FROM `posts`
962 WHERE `id` = 73
963
964 ~ SQL (0.000451) COMMIT
965 ~ SQL (0.000148) BEGIN
966 ~ Post Destroy (0.000216)  DELETE FROM `posts`
967 WHERE `id` = 74
968
969 ~ SQL (0.000385) COMMIT
970 ~ SQL (0.000128) BEGIN
971 ~ Post Destroy (0.000140)  DELETE FROM `posts`
972 WHERE `id` = 75
973
974 ~ SQL (0.000382) COMMIT
975 ~ SQL (0.000154) BEGIN
976 ~ Post Destroy (0.000152)  DELETE FROM `posts`
977 WHERE `id` = 76
978
979 ~ SQL (0.000387) COMMIT
980 ~ SQL (0.000105) BEGIN
981 ~ Post Create (0.000204) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:48:53', 'Merb Rawks', '2008-04-16 02:48:53')
982 ~ SQL (0.000432) COMMIT
983 ~ SQL (0.000110) BEGIN
984 ~ Post Create (0.000311) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:48:53', 'Like the Hawks', '2008-04-16 02:48:53')
985 ~ SQL (0.000491) COMMIT
986 ~ Post Load (0.000318) SELECT * FROM `posts` 
987 ~ SQL (0.000110) BEGIN
988 ~ Post Destroy (0.000216)  DELETE FROM `posts`
989 WHERE `id` = 77
990
991 ~ SQL (0.000460) COMMIT
992 ~ SQL (0.000162) BEGIN
993 ~ Post Destroy (0.000190)  DELETE FROM `posts`
994 WHERE `id` = 78
995
996 ~ SQL (0.000368) COMMIT
997 ~ SQL (0.000129) BEGIN
998 ~ Post Create (0.000602) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:48:53', 'Merb Rawks', '2008-04-16 02:48:53')
999 ~ SQL (0.000491) COMMIT
1000 ~ SQL (0.000087) BEGIN
1001 ~ Post Create (0.000190) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:48:53', 'Like the Hawks', '2008-04-16 02:48:53')
1002 ~ SQL (0.000368) COMMIT
1003 ~ Post Load (0.000314) SELECT * FROM `posts` 
1004 ~ SQL (0.000080) BEGIN
1005 ~ Post Destroy (0.000198)  DELETE FROM `posts`
1006 WHERE `id` = 79
1007
1008 ~ SQL (0.000424) COMMIT
1009 ~ SQL (0.000125) BEGIN
1010 ~ Post Destroy (0.000137)  DELETE FROM `posts`
1011 WHERE `id` = 80
1012
1013 ~ SQL (0.000372) COMMIT
1014 ~ SQL (0.000135) BEGIN
1015 ~ Post Create (0.000222) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:48:53', 'Merb Rawks', '2008-04-16 02:48:53')
1016 ~ SQL (0.000464) COMMIT
1017 ~ SQL (0.000092) BEGIN
1018 ~ Post Create (0.000201) INSERT INTO `posts` (`updated_at`, `body`, `created_at`) VALUES('2008-04-16 02:48:53', 'Like the Hawks', '2008-04-16 02:48:53')
1019 ~ SQL (0.000388) COMMIT
1020 ~ Post Load (0.000308) SELECT * FROM `posts` 
1021 ~ SQL (0.000085) BEGIN
1022 ~ Post Destroy (0.000195)  DELETE FROM `posts`
1023 WHERE `id` = 81
1024
1025 ~ SQL (0.000466) COMMIT
1026 ~ SQL (0.000131) BEGIN
1027 ~ Post Destroy (0.000145)  DELETE FROM `posts`
1028 WHERE `id` = 82
1029
1030 ~ SQL (0.000380) COMMIT
toggle raw diff