Class: Pageflow::FilesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/pageflow/files_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



5
6
7
8
9
10
11
12
# File 'app/controllers/pageflow/files_controller.rb', line 5

def show
  respond_to do |format|
    format.html do
      entry = PublishedEntry.find(params[:entry_id], entry_request_scope)
      @file = entry.files(file_type.model).find(params[:id])
    end
  end
end