Dockerized Plex with Transmission and Radarr and Sonarr for more easily movies and TV series download.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Helpers for better embedding and manipulation of videos | |
# Place this code in app/helpers/videos_helper.rb | |
# Then from any view you can add: | |
# | |
# <%= get_video_iframe('http://the.video.url') %> | |
# | |
# Optionally you can add width and height. | |
# | |
# <%= get_video_iframe('http://the.video.url', '1600px', '900px') %> | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# As used with CanCan and Devise | |
class ApplicationController < ActionController::Base | |
protect_from_forgery | |
include ErrorResponseActions | |
rescue_from CanCan::AccessDenied, :with => :authorization_error | |
rescue_from ActiveRecord::RecordNotFound, :with => :resource_not_found | |
before_filter :authenticate! |