something along the lines of the following...

def index
  hobo_index Person.apply_scopes(:search =>
[params[:search],:first_name,:last_name],
                                                    :order_by =>
parse_sort_param(:first_name,:last_name)
end


On 4 July, 10:35, Juan de la Cruz <[email protected]> wrote:
> Hello,
>    First of all, huzzah for Hobo and DRY.   Anyway, I'm a newbie and I
> need help with <table-plus> and searching on index.dryml?  Here's my
> code and scripts:
>
> hobo searchie
> script/generate hobo_model_resource person first_name:string
> last_name:string
>
> searchie/app/views/persons/index.dryml
> <index-page>
>     <collection: replace>
>         <table-plus fields="this, first_name, last_name">
>             <empty-message:>No persons match your criteria</empty-
> message:>
>         </table-plus>
>     </collection:>
> </index-page>
>
> What do I put on searchie/app/controllers/persons_controller.rb to
> make search and sorting work?
>
> Regards,
> JD

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