I have one model User. And i have used
acts_as_commentable_with_threading plugin.
I am firing query
@comments = Comment.find(:all,:include => :user)
it generate mysql properly.
SELECT SQL_NO_CACHE * FROM `comments`
SELECT SQL_NO_CACHE * FROM `users` WHERE (`users`.`id` IN (1,4,5)) .

But when i am using comment.user in my partial file it's firing query
again.
I don't know why this problem is occurring.

Anyone can help me.

Thanks.
-- 
Posted via http://www.ruby-forum.com/.

--

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 rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.


Reply via email to