You're defining @review as an instance variable, so you have to use it as
one in the view:

$("#votes").html("<%= *@*review.votes_count %>")

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/Ocd3vOdvJUwJ.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 6 | next ›
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedOct 14, '11 at 12:31a
activeOct 16, '11 at 2:27a
posts6
users2
websiterubyonrails.org
irc#RubyOnRails

2 users in discussion

Sean Six: 4 posts Tim Shaffer: 2 posts

People

Translate

site design / logo © 2022 Grokbase