Ruby on Rails Thursday, December 30, 2010

Greg Ma wrote in post #971151:
> ActiveRecord::StatementInvalid (Mysql::Error: Operand should contain 1
> column(s): SELECT * FROM `conversations` WHERE (conversations.started_by
> = 1 OR conversations.with = 1) AND (SELECT * FROM conversations c WHERE
> (c.started_by = 1 OR c.with = 1)) ORDER BY updated_at DESC)

Are you sure you really need :finder_sql? I didn't see anything here
that :condtions and :order couldn't handle.

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

No comments:

Post a Comment