Sha256: 9d9b145a4742d36522390bcfb3a58f8c70442925fc01f22bcd88cd597c50ffca
Contents?: true
Size: 400 Bytes
Versions: 7
Compression:
Stored size: 400 Bytes
Contents
class VideosController < CommonDocumentsController respond_to :html,:js def show path = @video.file.path(params[:style]) if(params[:style].present?) path = path.split('.')[0]+'.'+params[:style] end respond_to do |format| format.all {send_file path, :type => @video.file_content_type, :disposition => "inline"} end end end
Version data entries
7 entries across 7 versions & 1 rubygems