Class: MrVideo::CassettesController

Inherits:
MrVideoController show all
Defined in:
app/controllers/mr_video/cassettes_controller.rb

Instance Method Summary collapse

Instance Method Details

#destroyObject



13
14
15
16
# File 'app/controllers/mr_video/cassettes_controller.rb', line 13

def destroy
  @cassette = Cassette.find(params[:id])
  @cassette.destroy    
end

#indexObject



5
6
7
# File 'app/controllers/mr_video/cassettes_controller.rb', line 5

def index
  @cassettes = Cassette.all
end

#showObject



9
10
11
# File 'app/controllers/mr_video/cassettes_controller.rb', line 9

def show
  @cassette = Cassette.find(params[:id])
end