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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -