0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

星評価実装で役に立つサイト

Posted at

★jQuery Raty - A Star Rating Plugin (current version: 1.4.3)

★星評価実装

★【Rails】raty.jsを使った評価機能を作る

★【Rails】raty.jsを用いた星5レビュー機能の実装

      <script>
        $('#star-rate<%= book.id %>').empty();
        $('#star-rate<%= book.id%>').raty({        // ('div').data.('raty').score/half/etc...();という意味で定義していると思われる
          size      : 36,
          starOff   : '<%= asset_path('star-off.png') %>',
          starOn    : '<%= asset_path('star-on.png') %>',
          half      : false,
          readOnly: true,
          score: '<%= book.star %>',//この部分は 「' '」これが抜けてる記事が多かった。 エラーになる可能性有り
        });
      </script>
      </div>  
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?