Sha256: b10d8b04a16fe2e6c6567150309d9ca403e2fc169c369932c2377e9f56d61288
Contents?: true
Size: 433 Bytes
Versions: 4
Compression:
Stored size: 433 Bytes
Contents
# encoding: utf-8 module SportDbAdmin class EventsController < SportDbAdminController # GET /events def index @events = Event.all end # GET /events/1 def show @event = Event.find( params[:id] ) end # GET /:key e.g /euro.2012 or /at.2011_12 etc. def shortcut @event = Event.find_by_key!( params[:key].tr('_','/') ) render :show end end # class EventsController end # module SportDbAdmin
Version data entries
4 entries across 4 versions & 1 rubygems