インデックス ビューで固定ヘッダー テーブルを作成しようとしています。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');
まったく変化なし...ここで何が問題なのですか?
ありがとう。