Sha256: 49c335c95af20227d713a5e8bf472b418e29b4f27cb220294363c00057cfb466

Contents?: true

Size: 253 Bytes

Versions: 1

Compression:

Stored size: 253 Bytes

Contents

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
grandstand-0.3.0 app/controllers/galleries_controller.rb