Class: ScribblerPicturesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ScribblerPicturesController
- Defined in:
- app/controller/scribbler_pictures_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'app/controller/scribbler_pictures_controller.rb', line 3 def show img = ScribblerImage.find_by_image_name("#{params[:name]}.#{params[:format]}") if img begin send_file(img.image.path, :disposition => 'inline', :status => 200) rescue Dragonfly::Job::Fetch::NotFound render :text => nil, :status => 404 end else render :text => nil end end |