Class: Plotline::EntriesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/plotline/entries_controller.rb

Instance Method Summary collapse

Instance Method Details

#destroyObject



14
15
16
17
# File 'app/controllers/plotline/entries_controller.rb', line 14

def destroy
  @entry.destroy
  redirect_to content_entries_path, notice: 'Entry was successfully destroyed.'
end

#indexObject



7
8
9
# File 'app/controllers/plotline/entries_controller.rb', line 7

def index
  @entries = Entry.where(type: content_class)
end

#showObject



11
12
# File 'app/controllers/plotline/entries_controller.rb', line 11

def show
end