I have installed jquery-raty-rails gem. Into my view.haml I have:
%p Averate rating
#star
Into other view .erb I have this code (I render this view inside which one have #star )
$('#star').raty({ readOnly: true, score: 2 });
But no way. I cannot see the stars. I have tried multiple ways to do that, but it was impossible. This code give me the next error:
Uncaught TypeError: undefined is not a function (anonymous function)
Any ideas?
Thanks in advance. I am getting crazy!