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, #resource_added?, #show_votes_count?, #voting_finished?, #voting_open?

Instance Method Details

#indexObject

Raises:

  • (ActionController::RoutingError)


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

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

#showObject

Raises:

  • (ActionController::RoutingError)


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

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