Since nobody added it to lighthouse yet...
http://hobo.lighthouseapp.com/projects/8324/tickets/372-apply-scopes-should-be-able-to-search-across-associations#ticket-372-1

On Jan 19, 4:03 pm, Daniel M <[email protected]> wrote:
> This is in my whish list too !
>
> On Jan 14, 10:13 pm, "Scott Bronson" <[email protected]> wrote:
>
> > On Wed, Jan 14, 2009 at 7:27 AM, Tom Locke <[email protected]> wrote:
> > >> The only problem is, I don't see how to search on viewer.name and
> > >> episode.name in apply_scopes.
>
> > > Please submit patch to add this feature to search scope :)
>
> > OK.  Is this what you're picturing?
>
> >    <table-plus with="&@logs" fields="this, Viewer.name,
> > Episode.description, created_at">
>
> >   �...@logs = Log.apply_scopes(
> >      :search    => [params[:search], "Viewer.name", "Episode.description"],
> >      :order_by  => parse_sort_param("Viewer.name", "Episode.description") )
>
> > Pass strings as well as symbols to apply_scopes?
> > Or is there a less manual / more hoboish way of specifying the joins?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Hobo 
Users" 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/hobousers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to