Sha256: 5ef4dabd16ad42f5ac114cff89633437df6d4afac6a15d0f55eee303ebc1ee2d
Contents?: true
Size: 426 Bytes
Versions: 4
Compression:
Stored size: 426 Bytes
Contents
# encoding: utf-8 module SportDbAdmin class CountriesController < SportDbAdminController # GET /countries def index @countries = Country.all end # GET /:key e.g /at or /us etc. def shortcut @country = Country.find_by_key!( params[:key] ) render :show end # GET /countries/1 def show @country = Country.find( params[:id] ) end end # class CountriesController end # module SportDbAdmin
Version data entries
4 entries across 4 versions & 1 rubygems