app/controllers/questionnaires_controller.rb
# Create a clone of the given questionnaire, copying all associated
# questions. The name and creator are updated.
Create a clone of the given questionnaire, copying all associated
questions. The name and creator are updated.
Create a clone of the given questionnaire copying all associated questions . The name and creator are updated .
def copy
    orig_questionnaire = Questionnaire.find(params[:id])
    questions = Question.where(questionnaire_id: params[:id])
    @questionnaire = orig_questionnaire.dup
    @questionnaire.instructor_id = session[:user].instructor_id 
    copy_questionnaire_details(questions, orig_questionnaire)
  end
def copy orig_questionnaire = Questionnaire . find ( params [ :id ] ) questions = Question . where ( questionnaire_id : params [ :id ] ) @questionnaire = orig_questionnaire . dup @questionnaire . instructor_id = session [ :user ] . instructor_id copy_questionnaire_details ( questions , orig_questionnaire ) end
Create a clone of the given questionnaire, copying all associated
questions.
Create a clone of the given questionnaire copying all associated questions .
## Why was TA-specific code removed here?  See Project E713.