diff options
author | David Gay <david@davidgay.org> | 2021-04-07 20:44:30 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-04-07 20:44:30 -0400 |
commit | f27be0dce605412440b6317cd568610f01079f32 (patch) | |
tree | 85d81e8e6325cf6ee4209ef87efa0aa5b337e62e /app/views/games/ptu/pokemon/index.html.erb | |
parent | e3bc8b4a01c1615bbe4cade564760cb97bcc2a25 (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.erb | 9 |
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> |