Re: Run rake tasks from the controller

elioncho
Mon, 09 Feb 2009 20:56:22 -0000

Good,

But how can I call a rake task from the model, and send some extra
params to it?

Thanks,

Elías

On Feb 9, 3:53 pm, "K. R."
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:
> Why do you run rake tasks in the controller? controllers are not really
> good to execute rake tasks. move it into the model and call it from the
> controller.
>
> Elias Orozco wrote:
> > Hello,
>
> > How can I run rake tasks from the controller and send extra params to
> > it too? Thanks,
>
> > El as
>
> --
> Posted viahttp://www.ruby-forum.com/.