Files
grecia/app/helpers/guides_helper.rb
rgarcia d3d05f9cee Add guide to create a proposal or investment
During a Participatory Budget, some users are getting confused and
creating a proposal instead of a budget investment. This intermediate
page should help them create investments

Adding a feature flag just in case other forks don’t need this feature
and setting seeds and dev_seeds for appropriate initial setup
2018-01-18 21:09:21 +01:00

19 lines
298 B
Ruby

module GuidesHelper
def new_proposal_guide
if feature?("guides")
new_guide_path
else
new_proposal_path
end
end
def new_budget_investment_guide
if feature?("guides")
new_guide_path
else
new_budget_investment_path(current_budget)
end
end
end