ruby on rails - Run rake task in controller -
I would like to run a rake function in my controller, is there any way to do this?
I did not get this nice style to call a rack function in the code. I recommend putting the code for the job you want to execute outside of a rake task, and the rack work is to call this code.
This is not only easy to call out the rake (what you want), but it also makes it easy to test the rack work.
Comments
Post a Comment