Class: MrVideo::EpisodesController
- Inherits:
-
MrVideoController
- Object
- ActionController::Base
- MrVideoController
- MrVideo::EpisodesController
- Defined in:
- app/controllers/mr_video/episodes_controller.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
12 13 14 15 16 |
# File 'app/controllers/mr_video/episodes_controller.rb', line 12 def destroy cassette = Cassette.find(params[:cassette_id]) @episode = cassette.find_episode_by_id(params[:id]) @episode.destroy end |
#show ⇒ Object
5 6 7 8 9 10 |
# File 'app/controllers/mr_video/episodes_controller.rb', line 5 def show show_presenter = Episodes::ShowPresenter.new(self) # TODO: Add method for sending decompressed content send_data show_presenter.content, type: show_presenter.content_type, disposition: 'inline' end |