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?
Better to clarify what you're talking about first, then we can help out.
Julian.
···
On 16/03/2008, at 1:01 PM, Harp Oon wrote:
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/\.