This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
Gitlink
/
forgeplus
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
16
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
Merge pull request 'user_clas show' (
#75
) from KingChan/forgeplus:chenjing into standalone_develop
pull/343/head
KingChan
3 years ago
parent
6c1aa9bb31
99f2c5b996
commit
d35bbcf6fb
1 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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])
Write
Preview
Loading…
Cancel
Save