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, #resource_added?, #show_votes_count?, #voting_finished?, #voting_open?
Instance Method Details
#index ⇒ Object
16 17 18 |
# File 'app/controllers/decidim/budgets/projects_controller.rb', line 16 def index raise ActionController::RoutingError, "Not Found" unless budget end |
#show ⇒ Object
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 |