From 4cb128fa24da1d960a20b981aac7b82e2868db26 Mon Sep 17 00:00:00 2001 From: David Gay Date: Thu, 2 Nov 2023 20:46:20 -0400 Subject: Support and add gen 2 sprites, including unowns --- app/views/pokedex/show.html.erb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'app/views/pokedex/show.html.erb') diff --git a/app/views/pokedex/show.html.erb b/app/views/pokedex/show.html.erb index bcff932..4d5545b 100644 --- a/app/views/pokedex/show.html.erb +++ b/app/views/pokedex/show.html.erb @@ -2,9 +2,11 @@

Pokédex

- <% Pokemon.where(pokedex_num: 1..151).order(:pokedex_num).each do |pokemon| %> -
-
No. <%= pokemon.pokedex_num %>
+ <% Pokemon.order(:pokedex_num).each do |pokemon| %> + <% break if pokemon.pokedex_num.to_i > 251 %> +
+
No. <%= pokemon.pokedex_num %>
<%= image_tag "sprites/pokemon/#{pokemon.pokedex_num}.png" %>
-- cgit v1.2.3