我定义了以下路线:
map.resources :categories, :has_many => :downloads
map.resources :downloads, :member => {:go => :get}, :collection => {:tag => :get}
map.connect '/downlods/page/:page', :controller => 'downloads', :action => 'index'
map.connect '/categories/:category_id/downloads/page/:page', :controller => 'downloads', :action => 'index'
出于某种原因,调用 will_paginate 帮助程序的第一个页面会导致呈现 ?page=2 的链接,而后续页面具有 /downloads/page/2 的链接。你知道这可能是什么原因吗?