def update
    @question = Question.find(params[:id])
    if @question.update_attributes(params[:question])
      flash[:notice] = 'The question was successfully updated.'
      redirect_to action: 'show', id: @question