summaryrefslogtreecommitdiff
path: root/app/controllers/characters
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-06-15 21:52:49 -0400
committerDavid Gay <david@davidgay.org>2021-06-15 21:54:32 -0400
commit637adf2963f174c3e3e3d6cf9efbff314e306f3e (patch)
tree4e4812f66848a751b12adda81f7c500c0a689116 /app/controllers/characters
parentf637f622af2d9b891271344ef23402c41419b3fe (diff)
MonsterKills and bestiary view
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