I built a simple voting system:
votes_controller.rb:
class VotesController < ApplicationController
def vote_up
@post = Post
First put make a wrapper div for show.html.erb
<div class='post-<%=@post.id%>' >
<h3><%= @post.votes.count %> votes</h3><br />
<%= link_to "Vote Up", vote_up_path(@post), :remote => true %>
</div>
and in vote_up.js.erb
$("post-<%=@post.id%>").html('<%=escape_javascript @post.votes.count %>');
or something like this