ActiveRecord error with Rails 2.1.0 using include statement

S

Sam Ginko

I updated to Rails 2.1.0 and I'm getting an
ActiveRecord::StatementInvalid error on an sql query that was working on
the previous version. A simple call with and include getting data from 2
tables. I'm not sure why this is happening now. Does anyone know what
might cause this? Thanks in advance.

@furnii_from_furnii = Furni.find :all, :include => "raider",
:conditions => ""+Furni.conditions_by_like(@search)+" OR "
+Raider.conditions_by_like(@search) + ""
 
R

reuben doetsch

[Note: parts of this message were removed to make it a legal post.]

rails forum
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,528
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top