Class: Decidim::Budgets::ProjectsController

Inherits:
ApplicationController show all
Includes:
NeedsCurrentOrder, Orderable, FilterResource
Defined in:
decidim-budgets/app/controllers/decidim/budgets/projects_controller.rb

Overview

Exposes the project resource so users can view them

Instance Method Summary collapse

Methods inherited from ApplicationController

#current_workflow, #show_votes_count?, #voting_finished?, #voting_open?

Methods inherited from Components::BaseController

#current_component, #current_manifest, #current_participatory_space, #permission_class_chain, #permission_scope, #redirect_unless_feature_private, #share_token

Methods included from RegistersPermissions

register_permissions

Methods included from UserBlockedChecker

#check_user_block_status, #check_user_not_blocked

Methods included from NeedsSnippets

#snippets

Methods included from HttpCachingDisabler

#disable_http_caching

Methods included from HasStoredPath

#skip_store_location?, #store_current_location

Methods included from NeedsOrganization

enhance_controller, extended, included

Instance Method Details

#indexObject

Raises:

  • (ActionController::RoutingError)

13
14
15
# File 'decidim-budgets/app/controllers/decidim/budgets/projects_controller.rb', line 13

def index
  raise ActionController::RoutingError, "Not Found" unless budget
end

#showObject

Raises:

  • (ActionController::RoutingError)

17
18
19
20
# File 'decidim-budgets/app/controllers/decidim/budgets/projects_controller.rb', line 17

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