RailsCasts Pro episodes are now free!

Learn more or hide this

Piotr Zuralski's Profile

GitHub User: pzuralski

Comments by Piotr Zuralski


To: Abdul Shajin,

It worked for my rails 3 app.


Good suggestion from iGEL (comment 13).
To have the page scroll to the top when the navigation link is clicked, simply append this line to pagination.js script:

$("html, body").animate({ scrollTop: 0 }, "slow");