search for: goal_id

Displaying 1 result from an estimated 1 matches for "goal_id".

Did you mean: global_id
2006 May 31
1
Creating Multiple Child objects on a single form
...; %> This produces a set of ''status'' objects like status1, status2, status3 in params, which I then loop through again in the create function in my evaluations controller: def create @evaluation = Evaluation.new(params[:evaluation]) @goal = Goal.find_by_id(params[:goal_id]) if @evaluation.save for objective in @goal.objectives @evaluation.statuses.create(params[''status'' + objective.number.to_s]) end flash[:notice] = ''Evaluation was successfully created.'' redirect_to :action => ''show...