Sha256: 1e44f9c139d8ca1c6ccbfcc578e58637a7cdece485cf354a2a67e2b0132205fa

Contents?: true

Size: 322 Bytes

Versions: 5

Compression:

Stored size: 322 Bytes

Contents

module C80Contest
  class BidPhotosController < ApplicationController
    before_filter :authenticate_user!
    skip_before_filter :verify_authenticity_token
    def image
      path = "uploads/bids/#{params[:file_name]}.#{params[:ext]}"
      send_file path, :x_sendfile => true, :disposition => :inline
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
c80_contest-0.1.9 app/controllers/c80_contest/bid_photos_controller.rb
c80_contest-0.1.8 app/controllers/c80_contest/bid_photos_controller.rb
c80_contest-0.1.7 app/controllers/c80_contest/bid_photos_controller.rb
c80_contest-0.1.6 app/controllers/c80_contest/bid_photos_controller.rb
c80_contest-0.1.5 app/controllers/c80_contest/bid_photos_controller.rb