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