On Oct 24, 3:14 pm, nin_d <[email protected]> wrote:
> In server log, I do see query for fetching users with id=1. How this
> is not appearing in the index view??
Is there a user with id 1? Get it working without :include, then worry
about the eager loading.
Fred
>
> ========= Server Log
>
> Processing FeaturesController#index (for 127.0.0.1 at 2009-10-24
> 19:42:45) [GET]
> Parameters: {"project_id"=>"1"}
> [4;36;1mProject Columns (0.0ms) [0m [0;1mSHOW FIELDS FROM
> `projects` [0m
> [4;35;1mProject Load (0.0ms) [0m [0mSELECT * FROM `projects`
> WHERE (`projects`.`id` = 1) [0m
> [4;36;1mFeature Load (0.0ms) [0m [0;1mSELECT * FROM `features`
> WHERE (`features`.project_id = 1) [0m
> [4;35;1mFeature Columns (16.0ms) [0m [0mSHOW FIELDS FROM
> `features` [0m
> [4;36;1mUser Columns (16.0ms) [0m [0;1mSHOW FIELDS FROM `users`
> [0m
> [4;35;1mUser Load (0.0ms) [0m [0mSELECT * FROM `users` WHERE
> (`users`.`id` = 1) [0m
> Rendering template within layouts/features
> Rendering features/index
> [4;36;1mCACHE (0.0ms) [0m [0;1mSELECT * FROM `projects` WHERE
> (`projects`.`id` = 1) [0m
> [4;35;1mCACHE (0.0ms) [0m [0mSELECT * FROM `projects` WHERE
> (`projects`.`id` = 1) [0m
> Rendered common/_main_menu (16.0ms)
> Rendered common/_project_menu (0.0ms)
> Completed in 141ms (View: 47, DB: 32) | 200 OK [http://127.0.0.1/
> projects/1/features]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---