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

Version Path
social_stream-documents-0.2.0 app/controllers/videos_controller.rb
social_stream-documents-0.1.12 app/controllers/videos_controller.rb
social_stream-documents-0.1.11 app/controllers/videos_controller.rb
social_stream-documents-0.1.10 app/controllers/videos_controller.rb
social_stream-documents-0.1.9 app/controllers/videos_controller.rb
social_stream-documents-0.1.8 app/controllers/videos_controller.rb
social_stream-documents-0.1.7 app/controllers/videos_controller.rb