summaryrefslogtreecommitdiff
path: root/app/controllers/characters/bestiary_controller.rb
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-06-16 20:49:59 -0400
committerGitHub <noreply@github.com>2021-06-16 20:49:59 -0400
commit6dfaa7453591910e1373d92d8a09ddf384ebe834 (patch)
treeccec71ec425808ea82a3bfbcd36490f1cdcb666d /app/controllers/characters/bestiary_controller.rb
parent007896b0057b8aecbf74dddd269b57efe3f6e0e6 (diff)
parent0d6a82102061ff58b7ba34b09c4be9687c21ab2a (diff)
Merge pull request #16 from dtgay/0.1.11
0.1.11
Diffstat (limited to 'app/controllers/characters/bestiary_controller.rb')
-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