jam-cloud/web/app/controllers/jam_tracks_controller.rb

7 lines
260 B
Ruby
Raw Permalink Normal View History

class JamTracksController < ApplicationController
#this controller is meant to provide JamTrack data that can be publicly accessible
#it is meant to be used withour authentication
def show
@jam_track = JamTrack.find_by!(slug: params[:slug])
end
end