Project

spaghetti

0.01
No commit activity in last 3 years
No release in over 3 years
Spaghetti - Rails Endless Page
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Spaghetti

Endless page for Rails > 3.1 using jQuery Sausage. Spaghetti supports both Kaminari and will_paginate.

Installation

Add this line to your application's Gemfile:

gem 'spaghetti'

And then execute:

$ bundle

Or install it yourself as:

$ gem install spaghetti

Usage

Make sure you add spaghetti JavaScript to your application.js:

//= require spaghetti

And spaghetti CSS to your application.css

*= require spaghetti

A Throbber will be displayed to indicate that more items are being loaded, spaghetti uses throbber.gif file in assets/images

Then add spaghetti markup to your view (example: posts/index.html):

<%= spaghetti 'posts', posts_path %>

You need to have your posts_controller responding with the following index.js.erb file:

<%= spaghetti 'posts', @posts %>

Contributing

Please see CONTRIBUTING.md for details.

Credits

spaghetti was originally written by Omar Abdel-Wahab.

RSM

spaghetti is maintained and funded by Raya Social Media.

License

spaghetti is Copyright © 2013 Raya Social Media. It is free software, and may be redistributed under the terms specified in the LICENSE file.