Woohoo!
I have created a script for sending daily email notifications! I first wrote it as an action within the controller so that i could test it through a web page. Then i transferred it to a method within the model, which i thought was a good idea, except i kept getting NoMethodError which was nonsense …
Anyway, after having my dinner i realised i didn’t even need a method – i could just put the relevant code straight into my ruby script! Which i think is a safer way to do it actually. I don’t particularly want anyone calling it from the web interface, although i’d programmed in some parameter checking to keep it secure.
Marvellous … i just need the lovely people at Rushed Sunlight to set up a CRON for me and we should all be getting our emails!
Daily notifications can be turned off if they get annoying, but i don’t yet have a weekly option … will work on that next weekend!