petertoth / seems_rateable

Star rating gem for rails applications. Uses jRating jquery plugin.
MIT License
13 stars 8 forks source link

Little Help Needed #9

Open vibhoo opened 10 years ago

vibhoo commented 10 years ago

It's a great gem, it's working fine. But i am using it in a form more precisely in a New Post Form, there i am able to rate it. But what i want is to display those rating in my show action how would i do it. ? ii tried but not working please help me ASAP

petertoth commented 10 years ago

Thanks! The gem is currently under heavy reconstruction so new version(completely rebuilt) will be available soon.

To your problem, I guess you want to display a rating for one specific resource on a show action. Ideally, you probably have an instance variable @post assigned in your show action so I suppose you want to do something like this in your view

<%= rating_for @post %>

I'm not exactly sure what your problem is so let me know if you have any further questions.