Joachim, i tried your suggestion first...
@licenses = License.all :conditions => ["id IN (?)", result]
hobo_index @licenses, :paginate => false
And it doesnt works... i get the same result:
undefined method `default_order' for #<Array:0x7f36bae51be8>
Tomoaki: going to the link, shows me the included bug, not the
solution patch, right? to fix it, i must use your inline diff code,
right?
On 28 nov, 07:41, Joachim Filip Bartosik <[email protected]> wrote:
> 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
>
> signature.asc
> < 1 KBVerDescargar
--
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.