Class: Decidim::Budgets::ProjectsController

Inherits:
ApplicationController show all
Includes:
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, #voting_finished?, #voting_open?

Instance Method Details

#indexObject

Raises:

  • (ActionController::RoutingError)


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

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

#showObject

Raises:

  • (ActionController::RoutingError)


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

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