gravier_app/app/controllers/public/video_files_controller.rb
2017-09-21 12:37:53 +02:00

22 lines
465 B
Ruby

# -*- encoding : utf-8 -*-
class Public::VideoFilesController < ApplicationController
layout "public"
def index
@video_folders = VideoFolder.publics.all
end
def show
if @video_file_lang = VideoFileLang.where(:slug => params[:slug], :lang_site_id => LangSite.find_by_slug(params[:lang]).id).first
elsif @video_file_lang = VideoFileLang.where(:slug => params[:slug]).first
end
@video_file = @video_file_lang.video_file
end
end