title: Rendering HTML from a job onto a page in Rails 5
body: <p>I am looking to create a job that renders a partial asynchronously once I gather selected resources from a backend database. I am doing this because the data I am fetching takes a long time to get, and I'd like to be able to display this data once it is received. Right now my code looks like this for the job:</p>
  
  <pre><code>class CommentsJob &lt; ApplicationJob
    queue_as: default
    def perform(commenter_company)
     @comments = Comment.where(company: commenter_company)
     @html = CommentsController.render partial: "comments", assigns {comments: @comments }
    end
  end
  </code></pre>
  
  <p>I already have the _comments.html.erb partial set up. I also have the queue adapter set to async so this job is indeed running in the background and finishes after the page is loaded.</p>
  
  <p>I am successfully able to get the html and set it to the @html instance variable in the job. </p>
  
  <p>My question is: how can I get this @html content onto the page that has already rendered? Can this be done from within the job, or do I need to use ActionCable/websockets to do this? Thanks in advance!</p>