Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
ActiveRecord error with Rails 2.1.0 using include statement
Sam Ginko
8/12/2008 12:43:00 AM
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) + ""
--
Posted via
http://www.ruby-...
.
2 Answers
reuben doetsch
8/12/2008 9:18:00 PM
0
[Note: parts of this message were removed to make it a legal post.]
rails forum
On Mon, Aug 11, 2008 at 8:42 PM, Sam Ginko <ginkod@gmail.com> wrote:
> 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) + ""
> --
> Posted via
http://www.ruby-...
.
>
>
Sam Ginko
8/12/2008 9:24:00 PM
0
reuben doetsch wrote:
> rails forum
oops. sorry. I realized it was the wrong place.
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
ActiveRecord error with Rails 2.1.0 using include statement
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password