holman/play — Issue #30: playcount
Author: keroger2k
Created: 2011-11-11 21:24:57+00:00
State: open

vote.count is being used to populate the playcount on the show_song page.

show_song.rb

> def plays
@song.votes.count
end

I would assume this would be

>def plays
@song.playcount || 0
end