blob: 6fcf41765f3f57bb3fa92281e6ec597eb7fe707e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
class Characters::SkillsController < ApplicationController
before_action :set_character, only: :index
def index
end
private
def set_character
@character = Character.find(params[:character_id])
unless current_char == @character
flash[:alert] = "You can only look at your own skills."
redirect_to character_path(@character)
end
end
end
|