Class: GalleriesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- GalleriesController
- Defined in:
- app/controllers/galleries_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
2 3 4 |
# File 'app/controllers/galleries_controller.rb', line 2 def index @galleries = Grandstand::Gallery.where(:published => true).paginate(:page => params[:page]) end |
#show ⇒ Object
6 7 8 |
# File 'app/controllers/galleries_controller.rb', line 6 def show @gallery = Grandstand::Gallery.where(:id => params[:id]).first end |