Closed bitflorist closed 14 years ago
This is because, in Rails 3, Tag.limit(3) returns a ActiveRecord::Relation object, which Hirb doesn't know. Calling all or to_a on it, will convert it to an array, which Hirb will understand
Closing as your example isn't querying but just creating a relation
I was wrong. Relations do query the db. Added support for Relation objects: http://github.com/cldwalker/hirb/commit/cb7fc8f09713a6dd918e5be10ef1275f56aed507
Table output broken, when using new Rails 3 way:
what works: Tag.all :limit=>3, :order=>"id DESC"
but: Tag.limit(3).order("id DESC")
doesn't work yet?