Class: Plotline::EntriesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Plotline::EntriesController
- Defined in:
- app/controllers/plotline/entries_controller.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
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 |
#index ⇒ Object
7 8 9 |
# File 'app/controllers/plotline/entries_controller.rb', line 7 def index @entries = Entry.where(type: content_class) end |
#show ⇒ Object
11 12 |
# File 'app/controllers/plotline/entries_controller.rb', line 11 def show end |