class SoundsController < ApplicationController def show sound = Sound.find(params[:id]) send_file sound.path, type: sound.mime_type end end