diff --git a/app/helpers/items_helper.rb b/app/helpers/items_helper.rb index dce2a5dc..cac4db38 100644 --- a/app/helpers/items_helper.rb +++ b/app/helpers/items_helper.rb @@ -9,7 +9,7 @@ module ItemsHelper pet_type.species = species pet_type.color = color src = sprintf(StandardSpeciesImageFormat, pet_type.image_hash) - html + image_tag(src, 'data-color' => color, 'data-species' => species.name) + html + image_tag(src, 'data-color-id' => color.id, 'data-species-id' => species.id, 'data-species-name' => species.name) end) end end