diff --git a/app/controllers/plans_controller.rb b/app/controllers/plans_controller.rb index 85a4a35..adda5d0 100644 --- a/app/controllers/plans_controller.rb +++ b/app/controllers/plans_controller.rb @@ -17,8 +17,6 @@ # GET /plans/new def new - authorize Plan - @plan = Plan.new authorize @plan @funders = Org.funders.all @@ -31,8 +29,8 @@ def create @plan = Plan.new - @plan.save authorize @plan + @plan.save if params[:template_id] @templates = [ Template.find(params[:template_id] ) ] @@ -298,14 +296,11 @@ end end -# TODO: This one is unreachable ... it has no route defined -=begin def show_export @plan = Plan.find(params[:id]) authorize @plan render 'show_export' end -=end def export @plan = Plan.find(params[:id])