ruby on rails - Will Paginate: How change default page in links -


i have 2 partial. first have common will_paginate in second will_paginate need change links (default url) generated will_paginate.

please need answer.

thanks

try this

will_paginate(@some_collection, :params => { :controller => "foo", :action => "bar" }) 

Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

java - where to store the user credentials in an enterprise application(EAI)? -

openxml - Programmatically format a date in an excel sheet using Office Open Xml SDK -