Skip to content

Commit

Permalink
README.md organization (installation to the top)
Browse files Browse the repository at this point in the history
  • Loading branch information
zmillman committed Apr 14, 2014
1 parent 11fbefb commit ec4f739
Showing 1 changed file with 23 additions and 26 deletions.
49 changes: 23 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,29 @@ that tastes great with [Rails](https://github.com/rails/rails) and
This project was originally designed for Rails, but the core plugin is flexible
enough to use anywhere.

Installation
------------

Add this line to your application's `Gemfile`:
```ruby
gem 'jquery-infinite-pages'
```

And then execute:
```
bundle install
```

Add to your `application.js` file:
```javascript
//= require jquery.infinite-pages
```

### Non-Rails

Just copy the `jquery.infinite-pages.js.coffee` file from `app/assets/javascripts` to
wherever you want it.

Usage
-----
jQuery Infinite Pages binds to an element containing a `rel="next"` pagination link and
Expand Down Expand Up @@ -47,32 +70,6 @@ $('.infinite-table').infinitePages('pause')
$('.infinite-table').infinitePages('resume')
```

Installation
------------

Add this line to your application's Gemfile:

```ruby
gem 'jquery-infinite-pages'
```

And then execute:

```
bundle install
```

Add to your `application.js`:

```javascript
//= require jquery.infinite-pages
```

### Non-Rails

Just copy the `jquery.infinite-pages.js.coffee` file from `app/assets/javascripts` to
wherever you want it.

Rails/Kaminari Example
----------------------

Expand Down

0 comments on commit ec4f739

Please sign in to comment.