|
|
@@ -4,6 +4,10 @@ class Users::ClasController < Users::BaseController |
|
|
def index |
|
|
def index |
|
|
@user_clas = UserCla.where(user: current_user) |
|
|
@user_clas = UserCla.where(user: current_user) |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def show |
|
|
|
|
|
@user_cla = current_user.user_clas.find params[:id] |
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
def create |
|
|
def create |
|
|
@user_cla = current_user.user_clas.find_by(cla_id: params[:cla_id]) |
|
|
@user_cla = current_user.user_clas.find_by(cla_id: params[:cla_id]) |
|
|
|