On Mon, Jul 19, 2010 at 3:08 PM, Chris Apolzon <[email protected]> wrote:
> Great, that worked Kevin.  Does hobo_index give us anything other than
> pagination and printing the default model collection?
>

Nope. There's actually not much to it:

    def hobo_index(*args, &b)
      options = args.extract_options!
      finder = args.first || model
      self.this = find_or_paginate(finder, options)
      response_block(&b)
    end

find_or_paginate just deals with figuring out if pagination should
happen, the order, etc. response_block handles setting up the standard
responds_to block, and that's about it...

--Matt Jones

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