Skip to content

Instantly share code, notes, and snippets.

class PrivateAssetsController
before_filter :authentificate_user!
def show
# проверка на существование файла
if file
send_file(file, ....)
else
render nothing: true, status: :not_found
end