You need to render partial with a collection of hashes (or kind_of?). Probably you control the code, which generate the collection
require 'delegate'
class Ticket3069 < DelegateClass(Hash)
def initialize(hash={})
super(hash)
# super(hash.with_indifferent_access) #if your keys unique regardless of string or symbol
end
end
Function generating collection is my_collection
class CollectionGenerator
def my_collection(...)
...
end
def my_collection_with_ticket_3069(*args, &block)
my_collection_without_ticket_3069(*args, &block).collect{|element| Ticket3069.new(element)}
end
alias_method_chain :my_collection, :ticket_3069
end