Sha256: fc131162088b0a65fbcc3deba0766e1ddc536211a3d22f842a9bc5304a3b6798

Contents?: true

Size: 337 Bytes

Versions: 3

Compression:

Stored size: 337 Bytes

Contents

# encoding: utf-8

module BeerDbAdmin

class BeersController < BeerDbAdminController
  
  def index
    # note: show 25 per page for now
    @beers = Beer.limit( 25 )
  end
  
  # GET /beers/:id e.g. /beers/1
  def show
    @beer = Beer.find( params[:id] )
  end

end # class BeersController

end # module BeerDbAdmin

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
beerdb-admin-0.1.1 app/controllers/beer_db_admin/beers_controller.rb
beerdb-admin-0.1.0 app/controllers/beer_db_admin/beers_controller.rb
beerdb-admin-0.0.1 app/controllers/beer_db_admin/beers_controller.rb