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
add licenses show
pull/347/head
feng
xxq250
1 year ago
parent
1ccbecc112
commit
e0bc394bd3
2 changed files
with
7 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
app/controllers/licenses_controller.rb
+3
-0
app/views/licenses/show.json.jbuilder
+ 4
- 0
app/controllers/licenses_controller.rb
View File
@@ -4,4 +4,8 @@ class LicensesController < ApplicationController
q = License.ransack(name_cont: params[:name])
@licenses = q.result(distinct: true)
end
def show
@license = License.find(params[:id])
end
end
+ 3
- 0
app/views/licenses/show.json.jbuilder
View File
@@ -0,0 +1,3 @@
json.id @license.id
json.name @license.name
json.content @license.content
Write
Preview
Loading…
Cancel
Save