W dniu 27.11.2010 21:30, jaclinuxhelp pisze:
> Hi!:
> 
>  Im doing this on my custom controller:
> 
> def router
>     ...
>     @licenses = License.find(result)
>     hobo_index @licenses, :paginate => false
> end
> 
> 
> And when invoking the "method", i get this:
> 
> undefined method `default_order' for #<Array:0x7f64e203c660>


As far as I remember hobo_index expects a named_scope.
License.find(result) returns instance of License so it will not work. If
you did something like

hobo_index License.all :conditions => { conditions }

it should work.

Regards,
Joachim

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to