私はWeb開発に不慣れで、無限スクロールを実装したいRailsアプリの構築を開始しました。これを行うために、アプリでカミナリページ付けジェムを設定しました。これは正常に機能しています。無限のスクロールを行うために、私はRailscast 114(改訂版)に従いました。もちろん、それは機能していません。ページをロードすると、正常にロードされ、数秒後にロードされます。
Chrome Web開発コンソールのエラー:
GET http://localhost:3000/home?page=2&_=8917348102384 500 (Internal Server Error) jquery.js:8417
If I expand this error I see the following:
send jquery.js:8417
jQuery.extend.ajax jquery.js:7969
jQuery.(anonymous function) jquery.js:7496
jQuery.extend.getScript jquery.js:7509
(anonymous function) recent.js:10
jQuery.event.dispatch jquery.js:3064
elemData.handle.eventHandle jquery.js:2682
jQuery.event.trigger jquery.js:2947
(anonymous function) jquery.js:3605
jQuery.extend.each jquery.js:612
jQuery.fn.jQuery.each jquery.js:242
jQuery.fn.extend.trigger jquery.js:3604
jQuery.fn.(anonymous function) jquery.js:3658
(anonymous function) recent.js:13
fire jquery.js:975
self.fireWith jquery.js:1083
jQuery.extend.ready jquery.js:407
DOMContentLoaded jquery.js:84
エラーのURLは、次の画像セットのURLであり、クリックすると画像に移動します。そのページから、コンソールは次の画像セットなどへの新しいURLで同じエラーを表示します。したがって、半分は機能しているようです。私はこれに何時間も何時間も立ち往生しています。私のコードのいずれかを投稿することが役立つかどうか教えてください。どんな助けでも大歓迎です!