Class: GalleriesController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/galleries_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



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

def index
  @galleries = Grandstand::Gallery.where(:published => true).paginate(:page => params[:page])
end

#showObject



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

def show
  @gallery = Grandstand::Gallery.where(:id => params[:id]).first
end