Class: Decidim::Budgets::ProjectsController
- Inherits:
-
ApplicationController
- Object
- Components::BaseController
- ApplicationController
- Decidim::Budgets::ProjectsController
- 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
#index ⇒ Object
14 15 16 |
# File 'app/controllers/decidim/budgets/projects_controller.rb', line 14 def index raise ActionController::RoutingError, "Not Found" unless budget end |
#show ⇒ Object
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 |