0

インデックス ビューで固定ヘッダー テーブルを作成しようとしています。2 日後、ようやく jQueryfixedheadertableアドオンを見つけましたが、まだ使用できません。jQueryを使うのは初めてなので、何か間違っていると思います。これは私がやったことです:

jquery.fixedheadertable.jsにファイルを追加しました\app\assets\javascripts

application.js

//= require jquery
//= require jquery-ui
//= require jquery_ujs
//= require jquery.fixedheadertable
..
..

my_js_coffee_file

$ -> 
    $("#id_of_my_index_table").fixheadertable({
             caption : 'My header is fixed !',
             height  : 200
    });

また試しました:

$ ->
  $('#id_of_my_index_table').fixedHeaderTable('show');

まったく変化なし...ここで何が問題なのですか?

ありがとう。

4

2 に答える 2