Class: MrVideo::CassettesController

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

Instance Method Summary collapse

Instance Method Details

#destroyObject



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

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

#indexObject



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

def index
  @cassettes = Cassette.all
end

#showObject



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

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