I am building a small twitter-like feed. A user has an input, and you have a feed of inputs.
The feed is effectively a list of posts. Each post's view is defined by a _post.html.haml partial view.
I have an AJAX post method that creates a new post in the backend. The problem is that you have to refresh the page to actually view the post appear on the feed.
I would like to append the html to the feed column. However, I create a post on the feed column using a partial view that takes in a local variable of the post details.
Partial views are on the server side. How can I still use the same partial view to obtain the html code for the new post I have created so that I can append it to feed column without having to refresh the page.
Thanks!