parent
707d3c08ed
commit
acd913a588
@ -0,0 +1,5 @@
|
|||||||
|
class TemplatesController < ApplicationController
|
||||||
|
def show
|
||||||
|
@template = EcTemplate.find_by_name!(params[:name])
|
||||||
|
end
|
||||||
|
end
|
@ -0,0 +1,3 @@
|
|||||||
|
json.template do
|
||||||
|
json.partial! 'attachments/attachment_simple', attachment: @template.attachments.last
|
||||||
|
end
|
Loading…
Reference in new issue