diff options
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/pokeviewer/pokemon_controller.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/controllers/pokeviewer/pokemon_controller.rb b/app/controllers/pokeviewer/pokemon_controller.rb new file mode 100644 index 0000000..aaf6586 --- /dev/null +++ b/app/controllers/pokeviewer/pokemon_controller.rb | |||
@@ -0,0 +1,13 @@ | |||
1 | require_dependency "pokeviewer/application_controller" | ||
2 | |||
3 | module Pokeviewer | ||
4 | class PokemonController < ApplicationController | ||
5 | def index | ||
6 | @pokemon = Pokemon.all | ||
7 | end | ||
8 | |||
9 | def show | ||
10 | @pokemon = Pokemon.find_by_uuid params[:id] | ||
11 | end | ||
12 | end | ||
13 | end | ||