I am trying to execute one task for development evironment every minute using whenever gem. I followed all the steps given in documentation for my rails 4 application. This is my schedule.rb file
every 1.minute do
runner "User.resend_confirmation_instructions_to_user", :environment => :development
end
an in my User model I have this code
def resend_confirmation_instructions_to_user
user = User.find_by_email("abcdef905@gmail.com")
user.send_confirmation_instructions
end
and then according to documentation i updated my crontab. its not giving me an error but also i am not getting any output. I simply followed this link http://eewang.github.io/blog/2013/03/12/how-to-schedule-tasks-using-whenever/