Skip to content
This repository has been archived by the owner on Aug 9, 2018. It is now read-only.

Commit

Permalink
Add show in admin/staffmember
Browse files Browse the repository at this point in the history
  • Loading branch information
koudaiii committed Mar 20, 2016
1 parent 98b5798 commit 56f358d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/controllers/admin/staff_members_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 56f358d

Please sign in to comment.