两条笔记
ajax 返回并且不继承layout
def edit
@user = current_user
@e =Publisher.new
@video = Video.find(params[:id])
@list = @video.video_files.order('created_at DESC')
gon.test = @video.video_files.order('show_time ASC')
gon.video = @video.mpd_path.to_s
@videoFile = VideoFile.new
@videoFile.video_id = @video.id
@vtt = WebVTT.read(@@vtt_path.to_s + @video.vtt_path.to_s)
gon.vtt = @vtt
respond_to do |format|
format.html {render 'edit',layout:false}
end
end