Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Piotr Zuralski's Profile

GitHub User: pzuralski

Comments by Piotr Zuralski

Avatar

To: Abdul Shajin,

It worked for my rails 3 app.

Avatar

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");