I\'d like to run a rake task in my controller. Is there any way to do this?
You can do this in your controller:
%x[rake name_task]
with: name_task is the name of your task
name_task