Hmm...strange. Well, not really strange as I understand what you are
saying but it's strange that there is no full support. I would think
that I am not the only one that would want to search from multiple
tables...

On Sep 4, 3:31 am, Frederick Cheung <[EMAIL PROTECTED]>
wrote:
> On 2 Sep 2008, at 20:29, cinderedmonkey wrote:
>
>
>
>
>
> > Thanks for the reply.
> > Sorry for taking a while to respond back.
> > It was a national holiday on our side so wasn't around during the
> > weekend.
>
> > Anyhow, hmm...As you suggested, I used the skip_types option as I
> > don't need the types.
> > Obviously I still get the 308 warning which is really annoying.
> > I will have to look into the :include option again as the last time I
> > tried it using find() I didn't have much luck for some odd reason.
> > I know nothing about the :method option so will need to look into that
> > one.
> > You mentions "@record.class.columns_hash[name] will be nil if name
> > does not correspond to a column from that table". What I don't
> > understand is why wouldn't it correspond to the columns from the
> > table? I mean, if they didn't correspond to the column for that table,
> > thefind_by_sqlquery would fail no? Or are you saying that because
>
> Rails is doing record.class.columns_hash ie it's looking at the  
> columns hash for one class in particular (in this case Component)  
> which quite naturally knows nothing about the
>
>
>
> > 'name' is something along the lines of "versions.componentid" instead
> > of "componentid" it gets messed up by the table name ("versions")?
> > Or have I gone totally off tangent here?
> > In any case, thanks for all the help, greatly appreciated.
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to