title: Update info on a page without reloading
body: <p>I'm working on a simple feature:</p>
  
  <ul>
  <li>User enters their phone number</li>
  <li>I send a confirmation code via TwilioAPI</li>
  <li>They are redirected to a page where they write the code they've received</li>
  </ul>
  
  <p>Sending is done by Sidekiq workers. I'm using the gem: <a href="https://github.com/utgarda/sidekiq-status" rel="nofollow">https://github.com/utgarda/sidekiq-status</a> to check the status of a job.</p>
  
  <pre><code>job_id = MyJob.perform_async(*args)
  
  Sidekiq::Status::queued?      job_id
  Sidekiq::Status::working?     job_id
  Sidekiq::Status::complete?    job_id
  Sidekiq::Status::failed?      job_id
  </code></pre>
  
  <p>Those are some states the job is in. What I want to do is show what is happening to the end user on 'Enter code' page without them having to reload the page.</p>
  
  <p>So, when I check</p>
  
  <blockquote>
    <p>Sidekiq::Status::complete? 123</p>
  </blockquote>
  
  <p>and the job is complete, they would see a check mark and a word 'Sent'.</p>
  
  <p>but if the status is</p>
  
  <blockquote>
    <p>Sidekiq::Status::failed? 123</p>
  </blockquote>
  
  <p>then they would be notified to try again.</p>
  
  <p>How to go about checking the status and displaying the results (progress) on the same page in real time?</p>