heh, you're finding the answers before we spend any brain time on it
at least :P.

on an aside, you'd think google would have a better search function
for its groups.  you do not get all results that you should

On Apr 15, 1:44 pm, Jeremy Savoy <[email protected]> wrote:
> Once again, I find my answer by digging deeper into this forum ...
> should have found this before I posted, sorry ...
>
>   def index
>     hobo_index Task.apply_scopes(:search =>
> [params[:search], :description],
>                                  :order_by => parse_sort_param(:id),
>                                  :timeframe_is => params[:timeframe])
>   end
>
> On Apr 15, 3:32 pm, Jeremy Savoy <[email protected]> wrote:
>
> > I found this thread and tried to emulate what was documented:
>
> >http://groups.google.com/group/hobousers/browse_thread/thread/90742c1...
>
> > Here is my code:
>
> > class TasksController < ApplicationController
>
> >   hobo_model_controller
>
> >   auto_actions :all
>
> >   Task.apply_scopes(:search => [params[:search], :description],
> >                     :order_by => parse_sort_param(:id),
> >                     :timeframe_is => params[:timeframe])
>
> > end
>
> > And this is the error message I get when I try to run this code:
>
> > tasks_controller.rb:7: undefined local variable or method `params' for
> > TasksController:Class
>
> > Also here is app/views/tasks/index.dryml, for reference:
>
> > <index-page>
> >   <collection: replace>
> >   <table-plus fields="this, description, complete, timeframe">
> >     <prepend-header:>
> >       <div class="filter">
> >         Display by timeframe: <filter-menu param-name="timeframe"
> > options="&TaskTimeframe.all"/>
> >       </div>
> >     </prepend-header:>
> >     <controls:/>
> >     <empty-message:>No stories match your criteria</empty-message:>
> >   </table-plus>
> >   </collection:>
> > </index-page>
>
>

-- 
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