Rendering partial in Rails using Javascript -
i developing social network in ruby on rails 3.
in post index view, displaying posts in loop ( or render partial ). render proper html page user.
<%= render @post %>
now, want append new post in real time in page. 1 thing comes mind write javascript ( keep on appending html tags ) whenever want append new post in page , call function.
i sorry if may sound obvious facing problem every , then. know preferable method accomplish this?
Comments
Post a Comment