"Developing a social networking site part 2 - rating stars" by wolfmanjm
I think the `act_as_rated` plugin has several schemes for the ratings, and one is to keep them in a table rather than calculate them each time, It should be easy to use that option instead of the...
View Article"Developing a social networking site part 2 - rating stars" by Tom
Has anyone tried to cache the ratings? I have a product search screen, and recalculating the rates is expensive, so I was thinking either caching the rates in the database, or fragment cache. Any cool...
View Article"Developing a social networking site part 2 - rating stars" by Zach
OH HAI! Awesome little tutorial/plugin/I-don't-know here :) I solved abenamer@yahoo.com's problem. It originates in the controller in your rate definition, specifically: @landlord.rate(rating,...
View Article"Developing a social networking site part 2 - rating stars" by wolfmanjm
no, but then the code is pretty old, and newer versions of rails and/or acts_as_rated may have changed something, and I haven't upgraded either as the current versions work well enough. If you find the...
View Article"Developing a social networking site part 2 - rating stars" by...
Hi there, I'm using this same code but I keep getting this error: "the rater object must be the one used when defining acts_as_rated (or a descendent of it). other objects are not acceptable" Did you...
View Article"Developing a social networking site part 2 - rating stars" by wolfmanjm
Good catch I'll update the code above Thanks
View Article"Developing a social networking site part 2 - rating stars" by s01ipsist
Great work! If the object hasn't been rated it can't have an average rating. Changing` o.rating_average` to 0 in the below code saves me a sql call (I'm using the stats table) r= "Not yet Rated" r +=...
View Article"Developing a social networking site part 2 - rating stars" by Jonathan
Dude, I Love You!!! I've been slacking on adding the stars rating to my rails project, but you just gave me a butt kick on getting that rolling. Thanks!
View Article"Developing a social networking site part 2 - rating stars" by topfunky
Maybe you could overlay a line graph on top of the stars. Or, just display the two graphs side-by-side.
View Article"Developing a social networking site part 2 - rating stars" by wolfmanjm
Thats interesting, the engineer in me likes the concept ;) it would be nice to combine the rating and the number of people who rated it in one graphic, but then I never was any good at UI design.
View Article"Developing a social networking site part 2 - rating stars" by topfunky
I have to take this opportunity to mention one of the worst implementations of star rating I've seen. Someone felt that the basic 5 stars wasn't good enough and decided to make a spectrum that reflects...
View ArticleDeveloping a social networking site part 2 - rating stars
In part 1 I outlined my project to implement snowdogsr.us a social networking site for snow dogs. I am pleased to announce that version 1 of this site is up, however I had to make some trade-offs to...
View Article