I found this thread and tried to emulate what was documented:
http://groups.google.com/group/hobousers/browse_thread/thread/90742c1de700e035/9a8e6610b3d2536f?lnk=gst&q=apply_scopes#9a8e6610b3d2536f
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.