Passkit::UrlGenerator.new(Passkit::CartTicket, {generator: @cart, collection_name: :tickets}).android
→ undefined method `id' for an instance of Hash
Passkit::UrlGenerator.new(Passkit::CartTicket, @cart, :tickets).android
→ wrong number of arguments (given 3, expected 1..2)
I tried the following ways to generate a url for multiple tickets from a cart. But both options returns errors. What am I doing wrong?
Without the collection:
Passkit::UrlGenerator.new(Passkit::CartTicket, Ticket.last).android
everything works fine.
Passkit::UrlGenerator.new(Passkit::CartTicket, {generator: @cart, collection_name: :tickets}).android → undefined method `id' for an instance of Hash
Passkit::UrlGenerator.new(Passkit::CartTicket, @cart, :tickets).android → wrong number of arguments (given 3, expected 1..2)
I tried the following ways to generate a url for multiple tickets from a cart. But both options returns errors. What am I doing wrong? Without the collection: Passkit::UrlGenerator.new(Passkit::CartTicket, Ticket.last).android everything works fine.