RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

AJAX Pagination - The easy way to add AJAX to site navigation

I just launched AJAX Pagination. It is specifically designed to make it easy to add AJAX functionality to your site, so that when navigating pages with AJAX, only the specific content will reload. It is so easy to use, you don’t have to touch a single line of javascript.

You can use this for site-wide navigation, between the different actions of a single controller, or different pages of records (eg. with will_paginate).

The gem supports multiple pagination sections, arranged however you want, including nested sections. It includes many more features waiting to be discovered (supporting forms, redirection, page titles and more).

It also changes the url in the address bar to the new url (found in the link), and supports browser back and forward buttons - as if the user followed a regular link. The only difference is that only part of the page loads. This functionality is not easy to code from scratch using javascript. Luckily, this gem shields you from all this work. You can now make your site look professional and cool much more easily.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in