I'm trying to use a table-plus to display log messages
log belongs_to :viewer
log belongs_to :episode
Here's the table:
<table-plus with="&@logs" fields="this, viewer.name, episode.name, created_at">
this this.viewer.name this.episode.name
1 Stan Mr. F
2 Mike Cabin Show
The only problem is, I don't see how to search on viewer.name and
episode.name in apply_scopes. The following doesn't work.
@logs = Log.apply_scopes(
:search => [params[:search], :viewer, :episode],
:order_by => parse_sort_param(:viewer, :episode) )
Thanks,
- Scott
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---