Hi all,

I have a field birthday_at in my model and want to add a filter to my
table-plus to allow selection of a range.

Tried to add
    hobo_index Person.apply_scopes(:search =>
[params[:search], :first_name, :last_name],
                                :order_by =>
parse_sort_param(*standard_fields(model)),
                                :birthday_between =>
[params[:start],params[:end]])
 to my controller as hobo_index action and

  <div class="filter">
    Filter by
    Birthday Between: <filter-menu param-name="start"
options="#{10.years.ago}" />
    And: <filter-menu param-name="end" options="#{Time.now}" />
  </div>
to the index.dryml for this model.

The filter is displayed as a simple selection box with only "All"
available...
How can I get the date selector field automatically be added?

Best regards,
Sebastian

P.S. I tried to find documentation for apply_scopes, but at
http://cookbook.hobocentral.net/manual/scopes I couldnt find it.

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