Class: Decidim::Blogs::PostsController

Inherits:
ApplicationController show all
Includes:
Flaggable, Paginable
Defined in:
decidim-blogs/app/controllers/decidim/blogs/posts_controller.rb

Overview

Exposes the blog resource so users can view them

Constant Summary

Constants included from Paginable

Paginable::OPTIONS

Instance Method Summary collapse

Instance Method Details

#indexObject



14
# File 'decidim-blogs/app/controllers/decidim/blogs/posts_controller.rb', line 14

def index; end

#showObject

Raises:

  • (ActionController::RoutingError)


16
17
18
# File 'decidim-blogs/app/controllers/decidim/blogs/posts_controller.rb', line 16

def show
  raise ActionController::RoutingError, "Not Found" unless post
end