I have a Sidekiq worker that does some background processing and then finally POSTs a success message to a 3rd party API. This message I post is essentially a "thank you" message and can contain HTML.
In the message I'd like to link back to my site in a properly formatted way. This naturally sounds like a view to me. I'd love to simply use a view template, render it to HTML and finally post it off to the API.
For the life of me, i cannot figure how to render a view from within my Sidekiq worker.
I have considered setting up a dummy controller/view combo and instantiating it from inside the worker but it seems wrong.
Any input would be greatly appreciated.