Add Reminder Method

Feature Added : 
   Send survey reminder for user

Add the following function to the above controller. 

def reminder
    @user = User.select('id, email as name').where(id: params[:user_id])
    UserMailer.survey_reminder(@user, @survey).deliver
    respond_to do |format|
        format.html { redirect_to(course_survey_stats_path(@course, @survey), notice: 'Reminder has been sent successfully.') }
    end
    
  end
Reminder method