add licenses show
This commit is contained in:
parent
1ccbecc112
commit
e0bc394bd3
|
@ -4,4 +4,8 @@ class LicensesController < ApplicationController
|
||||||
q = License.ransack(name_cont: params[:name])
|
q = License.ransack(name_cont: params[:name])
|
||||||
@licenses = q.result(distinct: true)
|
@licenses = q.result(distinct: true)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def show
|
||||||
|
@license = License.find(params[:id])
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
json.id @license.id
|
||||||
|
json.name @license.name
|
||||||
|
json.content @license.content
|
Loading…
Reference in New Issue