2009/12/9 RubyonRails_newbie <[email protected]>: > I'll need to take another look at it. I dont think it's there, > > Would it look like select * from posts where active_post = 1?
If it is using the code in fetchFirstPostForSessionUser that you posted earlier, ie Post.find_by_user_id( session[:user_id], 1, :limit => 1, :conditions => "active_post = 1", :order => "created_at desc") Then it should have all of that in it - the user id the conditions, the order and the limit. If your log is getting large you can just delete it and then run the query to make it easier to find the bits of interest. Colin By the way I do wish you would stop top posting, it makes it much harder to follow what you are replying to. -- 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.

