Retrieved @posts inside Posts#index, created a shared posts template, using partials we render this template for each post.
| |   |
| 41 | 41 | ~ Compiling routes... |
| 42 | 42 | ~ Using 'share-nothing' cookie sessions (4kb limit per client) |
| 43 | 43 | ~ {:action_time=>0.023912, :before_filters_time=>1.6e-05, :after_filters_time=>9.0e-06} |
| 44 | ~ Loaded TEST Environment... |
| 45 | ~ loading gem 'merb_activerecord' from ... |
| 46 | ~ loading gem 'merb_helpers' from ... |
| 47 | ~ loading gem 'activerecord' from ... |
| 48 | ~ Connecting to database... |
| 49 | ~ Compiling routes... |
| 50 | ~ Using 'share-nothing' cookie sessions (4kb limit per client) |
| 51 | ~ [4;36;1mSQL (0.000231)[0m [0;1mSET NAMES 'utf8'[0m |
| 52 | ~ [4;35;1mSQL (0.000099)[0m [0mSET SQL_AUTO_IS_NULL=0[0m |
| 53 | ~ [4;36;1mPost Load (0.000522)[0m [0;1mSELECT * FROM `posts` ORDER BY created_at DESC[0m |
| 54 | ~ {:action_time=>0.045228, :before_filters_time=>1.4e-05, :after_filters_time=>1.0e-05} |
| 55 | ~ Loaded TEST Environment... |
| 56 | ~ loading gem 'merb_activerecord' from ... |
| 57 | ~ loading gem 'merb_helpers' from ... |
| 58 | ~ loading gem 'activerecord' from ... |
| 59 | ~ Connecting to database... |
| 60 | ~ Compiling routes... |
| 61 | ~ Using 'share-nothing' cookie sessions (4kb limit per client) |
| 62 | ~ [4;36;1mSQL (0.000248)[0m [0;1mSET NAMES 'utf8'[0m |
| 63 | ~ [4;35;1mSQL (0.000098)[0m [0mSET SQL_AUTO_IS_NULL=0[0m |
| 64 | ~ [4;36;1mPost Load (0.000383)[0m [0;1mSELECT * FROM `posts` ORDER BY created_at DESC[0m |
| 65 | ~ {:action_time=>0.045942, :before_filters_time=>1.4e-05, :after_filters_time=>1.1e-05} |
| 66 | ~ [4;35;1mPost Columns (0.002168)[0m [0mSHOW FIELDS FROM `posts`[0m |
| toggle raw diff |
--- a/log/merb_test.log
+++ b/log/merb_test.log
@@ -41,3 +41,26 @@ Wed, 16 Apr 2008 06:05:40 GMT ~ info ~ Logfile created
~ Compiling routes...
~ Using 'share-nothing' cookie sessions (4kb limit per client)
~ {:action_time=>0.023912, :before_filters_time=>1.6e-05, :after_filters_time=>9.0e-06}
+ ~ Loaded TEST Environment...
+ ~ loading gem 'merb_activerecord' from ...
+ ~ loading gem 'merb_helpers' from ...
+ ~ loading gem 'activerecord' from ...
+ ~ Connecting to database...
+ ~ Compiling routes...
+ ~ Using 'share-nothing' cookie sessions (4kb limit per client)
+ ~ [4;36;1mSQL (0.000231)[0m [0;1mSET NAMES 'utf8'[0m
+ ~ [4;35;1mSQL (0.000099)[0m [0mSET SQL_AUTO_IS_NULL=0[0m
+ ~ [4;36;1mPost Load (0.000522)[0m [0;1mSELECT * FROM `posts` ORDER BY created_at DESC[0m
+ ~ {:action_time=>0.045228, :before_filters_time=>1.4e-05, :after_filters_time=>1.0e-05}
+ ~ Loaded TEST Environment...
+ ~ loading gem 'merb_activerecord' from ...
+ ~ loading gem 'merb_helpers' from ...
+ ~ loading gem 'activerecord' from ...
+ ~ Connecting to database...
+ ~ Compiling routes...
+ ~ Using 'share-nothing' cookie sessions (4kb limit per client)
+ ~ [4;36;1mSQL (0.000248)[0m [0;1mSET NAMES 'utf8'[0m
+ ~ [4;35;1mSQL (0.000098)[0m [0mSET SQL_AUTO_IS_NULL=0[0m
+ ~ [4;36;1mPost Load (0.000383)[0m [0;1mSELECT * FROM `posts` ORDER BY created_at DESC[0m
+ ~ {:action_time=>0.045942, :before_filters_time=>1.4e-05, :after_filters_time=>1.1e-05}
+ ~ [4;35;1mPost Columns (0.002168)[0m [0mSHOW FIELDS FROM `posts`[0m |