I've got a system where users upload documents with expiry dates. I want to send the user an email reminder 1 month and 1 week before expiration to remind them to upload a new document.
What's the best way to do this?
Thanks in advance.
Thanks for the super speedy response :)
I have currently two Devise models Company and Contractor.
When they sign in I want to redirect them to a dashboard page. At the moment I have a before_action on the dashboard controller that only allows authenticate_company! so when a contractor signs in they can't view the dashboard.
Anyone done something like this before? Also is there an easy way to check which user is currently logged in so that I can show them different partial views?
Thanks in advance