Wednesday, November 25, 2009

Calling an authenticated controller action from a rake task

Just wrote that little rake file:

I thought that would be useful for some people. It just calls an action from a Rails controller. This action is supposed to be accessed only by the admin user. We also prevent checking for authenticity token. This rake task will be called in a cron job.