Browse Source

Merge pull request 'user_clas show' (#75) from KingChan/forgeplus:chenjing into standalone_develop

pull/343/head
KingChan 3 years ago
parent
commit
d35bbcf6fb
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      app/controllers/users/clas_controller.rb

+ 4
- 0
app/controllers/users/clas_controller.rb View File

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

def create
@user_cla = current_user.user_clas.find_by(cla_id: params[:cla_id])


Loading…
Cancel
Save