summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/games/ptu/pokemon_controller.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/controllers/games/ptu/pokemon_controller.rb b/app/controllers/games/ptu/pokemon_controller.rb
index 485f03d..e5329a7 100644
--- a/app/controllers/games/ptu/pokemon_controller.rb
+++ b/app/controllers/games/ptu/pokemon_controller.rb
@@ -1,4 +1,8 @@
class Games::Ptu::PokemonController < ApplicationController
+ def index
+ @pokemons = PtuPokemon.all
+ end
+
def show
@pokemon = PtuPokemon.find(params[:id])
end
@@ -18,6 +22,13 @@ class Games::Ptu::PokemonController < ApplicationController
end
end
+ def edit
+ @pokemon = PtuPokemon.find(params[:id])
+ end
+
+ def update
+ end
+
private
def pokemon_params
params.require(:ptu_pokemon).permit(:name, :base_hp, :base_atk, :base_def, :base_spatk, :base_spdef,