From: Harp Oon Date: 2008-03-16T11:01:40+09:00 Subject: Running a rake task from a controller (pass/return values) I'm a RoR noob. I have a controller that receives data from a view. I want to save that data into a DB, which is fine. After saving the data, I want to run a rake task on it to get more data to save it in the DB. The rake task work fine, but I can't figure out a way to pass in the recordID for the task I want the task to run on. Within the rake task I can access all the data within a table and run the task on all the data, but I don't want that to happen. All I want is to pass in the recordID for the task to run on . Also, is there a way for a rake task to return an array back to the controller? -- Posted via http://www.ruby-forum.com/.