summaryrefslogtreecommitdiff
path: root/app/controllers/characters
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/characters')
-rw-r--r--app/controllers/characters/bestiary_controller.rb12
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