Class: CarrierwaveGallery::GalleryController

Inherits:
ApplicationController show all
Defined in:
app/controllers/carrierwave_gallery/gallery_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



2
3
4
# File 'app/controllers/carrierwave_gallery/gallery_controller.rb', line 2

def index
  @collection = Gallery.all
end

#showObject



6
7
8
# File 'app/controllers/carrierwave_gallery/gallery_controller.rb', line 6

def show
  @gallery = Gallery.find(params[:id])
end