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?

Wow…

It’s like a bundle of mixedupness! :slight_smile:

Can I ask why you’re using a rake task?

Better to clarify what you’re talking about first, then we can help out.

Julian.