atom feed6 messages in com.googlegroups.activescaffoldRe: search_sql question
FromSent OnAttachments
Lisa...@gmail.comMay 25, 2007 4:17 am 
Tim HarperMay 25, 2007 7:35 am 
Lisa...@gmail.comMay 28, 2007 1:48 am 
mari...@gmail.comMay 29, 2007 7:59 am 
Lisa...@gmail.comMay 30, 2007 3:15 am 
Lance IvyMay 30, 2007 11:09 am 
Subject:Re: search_sql question (
Date:May 30, 2007 3:15:53 am

It doesn't work me using: config.columns[:a].includes = [:as] config.columns[:a].search_sql = ""

I get the next message: Association named 'as' was not found; perhaps you misspelled it?

Please, Someone can help me?


On May 29, 4:59 pm, "" <> wrote:

I'm trying to do that but I think that It can't be done.

On May 28, 10:48 am, "" <> wrote:

Yes, I have tried It but doesn't work.

I get the next error: "Association named 'a' was not found; perhaps you misspelled it?"

the relation is: A has many B B has many C


On May 25, 4:35 pm, "Tim Harper" <> wrote:

Hi Lisa,

See the "includes" section of the documentation

-----Original Message----- From:

[] On Behalf Of Sent: Friday, May 25, 2007 5:18 AM To: ActiveScaffold : Ruby on Rails plugin Subject: search_sql question

If I have a model A that has many models B and B has many models C,

It's posible in the table of model C search content that is in the model A?

I use config.columns[:a].search_sql = '' but this doesn't work because it only does a LEFT OUTER JOIN between the tables Bs and Cs and I need a join whith the table A.

How Can I do that?