Class: Decidim::Budgets::ProjectsController

Inherits:
ApplicationController show all
Includes:
AttachmentsHelper, NeedsCurrentOrder, Orderable, IconHelper, FilterResource
Defined in:
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, #resource_added?, #show_votes_count?, #voting_finished?, #voting_open?

Instance Method Details

#indexObject

Raises:

  • (ActionController::RoutingError)


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

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

#showObject

Raises:

  • (ActionController::RoutingError)


21
22
23
24
# File 'app/controllers/decidim/budgets/projects_controller.rb', line 21

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