From 56f358d31f144014aaf32075e6a49e9b54752fb9 Mon Sep 17 00:00:00 2001 From: koudaiii Date: Mon, 21 Mar 2016 00:40:15 +0900 Subject: [PATCH] Add show in admin/staffmember --- app/controllers/admin/staff_members_controller.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/controllers/admin/staff_members_controller.rb b/app/controllers/admin/staff_members_controller.rb index 0d7a7c2..085ecc9 100644 --- a/app/controllers/admin/staff_members_controller.rb +++ b/app/controllers/admin/staff_members_controller.rb @@ -2,4 +2,9 @@ class Admin::StaffMembersController < Admin::Base def index @staff_members = StaffMember.order(:family_name_kana, :given_name_kana) end + + def show + staff_member = StaffMember.find(paramas[:id]) + redirect_to [ :edit, :admin, staff_member ] + end end