Re: Run rake tasks from the controller

K. R.
Mon, 09 Feb 2009 21:01:58 -0000

For example with BJ, so the webserver is no permanently in use...

- Bj.submit "cmd.exe /c rake kipf:convert_movie id=#{id}" in windows
- Bj.submit "system rake kipf:convert_movie id=#{id}" in linux (not
sure)



Elias Orozco wrote:
> Good,
>
> But how can I call a rake task from the model, and send some extra
> params to it?
>
> Thanks,
>
> El�as

--
Posted via http://www.ruby-forum.com/.