Skip to content

Instantly share code, notes, and snippets.

require 'rack/app'
class MediaServerController < Rack::App
# this will serve files from the project root public folder
# one folder can only be mounted to one mount point. in this case '/'
serve_files_from '/public'
# this will mount the assets folder from the relative "media_server_controller" directory
# ("./media_server_controller/assets/**/*") and mount to the current controller /assets mount point