Coursemology/coursemology.org — pull request #288 by subakarank (2014-11-13 07:37:59+00:00)
Title: 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