Run rake task from Rails controller

Hi everyone,

Could you give me an detail example how can I call rake task from
controller in Rails project?

Best regards,
Leakhina