【发布时间】:2011-07-18 08:38:30
【问题描述】:
我使用 Rails3、JQuery 和 will_paginate gem 来制作远程分页链接。已知的解决方案是:
$('.pagination a').live('click',function (){
$.getScript(this.href);
return false;
});
使用此代码,我得到如下链接:http://localhost:3000/products?_=1300468875819&page=1 或 http://localhost:3000/products?_=1300468887024&page=2。所以小问题是:这个奇怪的参数_=1300468887024 是什么(看起来像Unix-time)。它的目的是什么?据我所知,这可能会导致搜索爬虫出现一些问题。
UPD:解决方案描述为here。
【问题讨论】:
-
分页按预期工作。问题不在于这个。
标签: ruby-on-rails ajax parameters