Update controller.rb

Added integer function to convert the reminder from string to integer