create.js.erb file it updates the counter on the first review,
regardless of whether the vote was placed on the first review or not.
I thought maybe if I loop through the reviews again the create.js.erb
file it might work.
<% @house.reviews.each do |review| %>
$("#votes").html("<%= review.votes_count %>")
<% end %>
This did not work either.
Posted via http://www.ruby-forum.com/.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to email@example.com.
To unsubscribe from this group, send email to firstname.lastname@example.org.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.