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
From:Lisa...@gmail.com (Lisa@gmail.com)
Date:May 30, 2007 3:15:30 am
List:com.googlegroups.activescaffold

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

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

Please, Someone can help me?

Thanks.

On May 29, 4:59 pm, "mari@gmail.com" <mari@gmail.com> wrote:

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

On May 28, 10:48 am, "Lisa@gmail.com" <Lisa@gmail.com> 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

Thanks.

On May 25, 4:35 pm, "Tim Harper" <timc@gmail.com> wrote:

Hi Lisa,

See the "includes" section of the documentation
herehttp://activescaffold.com/docs/api-column

-----Original Message----- From: acti@googlegroups.com

[mailto:acti@googlegroups.com] On Behalf Of Lisa@gmail.com 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 = 'a.name' 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?