title: How to submit form and update element on the page without refresh, in Rails 4
body: <p>I'm having a lot of trouble trying to do something that I imagine would be fairly simple. </p>
  
  <p>I have a list of items, let's say, todos. At the bottom of that list I have a text field where I add new items to that list. I want to make it so that the new items are added to the bottom of that list dynamically, without a full page refresh, like in a chat window.</p>
  
  <p>I made the submit form <code>remote: true</code> and it successfully submits without reloading the page, but I can't get the new item to appear at the bottom of the list at the same time. I have to refresh the page to see the changes.</p>
  
  <p>I tried a few different approaches I found on SO (there's no shortage of similar questions here) and the web, and even a gem called Sync, but each of them had errors and problems of their own and I couldn't get any to work properly. Each of them could be its own SO question. So instead I ask: Is there a "recipe" that is sure to successfully implement this in Rails 4?</p>