Hi,
> 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?
Sorry for mis-guided descriptions. I suggest waiting for pre23.
The code:
@licenses = License.all :conditions => ["id IN (?)", result]
hobo_index @licenses
hits two issues in hobo.
One issue is "undefined method `default_order' for
#<Array:0xafb80b0>". It is raised when hobo_index is called with an
array. The diff fixes the issue if it is applied on hobo.
Another issue is #877 "member_class is not preserved on paginate"
(https://hobo.lighthouseapp.com/projects/8324/tickets/877). It's been
fixed in development branch but not published as a gem yet. It can
not be avoided by
@licenses = License.scoped(:conditions => ["id IN (?)", result])
or
@licenses = License.where("id IN (?)", result)
":paginate => false" won't be help because it raises another error
("undefined method `all' for #<Array:0xab7d900>" or "undefined method
`total_pages' for #<Array:0xa534c4c>").
I suggest waiting for pre23. At least pre23 will fix #877, and
hopefully `default_order' too.
-----
Tomoaki Hayasaka <[email protected]>
--
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.