Class: Decidim::Budgets::BudgetsController

Inherits:
ApplicationController show all
Includes:
Orderable, TranslatableAttributes
Defined in:
app/controllers/decidim/budgets/budgets_controller.rb

Overview

Exposes the budget resources so users can participate on them

Instance Method Summary collapse

Methods inherited from ApplicationController

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

Instance Method Details

#indexObject



12
# File 'app/controllers/decidim/budgets/budgets_controller.rb', line 12

def index; end

#showObject

Raises:

  • (ActionController::RoutingError)


14
15
16
17
18
# File 'app/controllers/decidim/budgets/budgets_controller.rb', line 14

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

  redirect_to budget_projects_path(budget)
end