summaryrefslogtreecommitdiff
path: root/app/views/games/ptu/pokemon/index.html.erb
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-04-07 20:44:30 -0400
committerDavid Gay <david@davidgay.org>2021-04-07 20:44:30 -0400
commitf27be0dce605412440b6317cd568610f01079f32 (patch)
tree85d81e8e6325cf6ee4209ef87efa0aa5b337e62e /app/views/games/ptu/pokemon/index.html.erb
parente3bc8b4a01c1615bbe4cade564760cb97bcc2a25 (diff)
PTU pokemon controller and view basic setup
Diffstat (limited to 'app/views/games/ptu/pokemon/index.html.erb')
-rw-r--r--app/views/games/ptu/pokemon/index.html.erb9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/views/games/ptu/pokemon/index.html.erb b/app/views/games/ptu/pokemon/index.html.erb
new file mode 100644
index 0000000..a1d7443
--- /dev/null
+++ b/app/views/games/ptu/pokemon/index.html.erb
@@ -0,0 +1,9 @@
+<h1>Pokemon</h1>
+
+<div class="my-4"><%= link_to "New", new_games_ptu_pokemon_path %></div>
+
+<ul class="list-disc">
+ <% @pokemons.each do |p| %>
+ <li><%= link_to p.name, games_ptu_pokemon_path(p) %></li>
+ <% end %>
+</ul>