vegantech/sims

View on GitHub
app/controllers/interventions/goals_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class Interventions::GoalsController < ApplicationController
  include PopulateInterventionDropdowns


  def create
    respond_to do |format|
      format.html do
        if params[:goal_id].present?
          redirect_to interventions_objectives_url(params[:goal_id], :custom_intervention => params[:custom_intervention])
        else
          redirect_to :back
        end
      end
      format.js {
        populate_objectives
     }
    end
  end

end