Sha256: e5eff4ec0d4e2f91d1b87e9c8fcb468cdd46e35c20cde0fb141a336231fe591f

Contents?: true

Size: 190 Bytes

Versions: 3

Compression:

Stored size: 190 Bytes

Contents

class DbFilesController < ApplicationController

  def show
    @db_file = DbFile.find(params[:id])
    send_data @db_file.data, type: @db_file.content_type, disposition: "inline"
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
file_upload-0.0.3 test/dummy/app/controllers/db_files_controller.rb
file_upload-0.0.2 test/dummy/app/controllers/db_files_controller.rb
file_upload-0.0.1 test/dummy/app/controllers/db_files_controller.rb