Class: Decidim::Blogs::PostsController
- Inherits:
-
ApplicationController
- Object
- DecidimController
- ApplicationController
- Components::BaseController
- ApplicationController
- Decidim::Blogs::PostsController
- Includes:
- Flaggable, IconHelper, 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
Instance Method Summary collapse
Methods included from IconHelper
#component_icon, #manifest_icon, #resource_icon, #resource_type_icon, #resource_type_icon_key, #text_with_resource_icon
Methods included from LayoutHelper
#_icon_classes, #apple_favicon, #application_path, #current_url, #current_user_unread_data, #extended_navigation_bar, #external_icon, #favicon, #icon, #legacy_favicon, #role
Methods included from TooltipHelper
Methods included from ModalHelper
#decidim_drawer, #decidim_modal
Methods included from OrganizationHelper
#current_organization_name, #organization_colors, #organization_description_label, #organization_name
Methods included from TranslatableAttributes
Methods inherited from Components::BaseController
#current_component, #current_manifest, #current_participatory_space, #permission_class_chain, #permission_scope, #redirect_unless_feature_private, #set_component_breadcrumb_item
Methods included from RegistersPermissions
Methods inherited from ApplicationController
Methods included from UserBlockedChecker
#check_user_block_status, #check_user_not_blocked
Methods included from NeedsSnippets
Methods included from Headers::HttpCachingDisabler
Methods included from HasStoredPath
#skip_store_location?, #store_current_location
Methods included from NeedsOrganization
enhance_controller, extended, included
Instance Method Details
#index ⇒ Object
13 |
# File 'decidim-blogs/app/controllers/decidim/blogs/posts_controller.rb', line 13 def index; end |
#show ⇒ Object
15 16 17 |
# File 'decidim-blogs/app/controllers/decidim/blogs/posts_controller.rb', line 15 def show raise ActionController::RoutingError, "Not Found" unless post end |