diff options
Diffstat (limited to 'app/controllers/characters/bestiary_controller.rb')
-rw-r--r-- | app/controllers/characters/bestiary_controller.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/controllers/characters/bestiary_controller.rb b/app/controllers/characters/bestiary_controller.rb new file mode 100644 index 0000000..7e37d9c --- /dev/null +++ b/app/controllers/characters/bestiary_controller.rb @@ -0,0 +1,12 @@ +class Characters::BestiaryController < ApplicationController + before_action :set_character + + def index + @monster_kills = @character.monster_kills.all + end + + private + def set_character + @character = Character.find(params[:character_id]) + end +end |