mislav/will_paginate — Issue #204: Specifying :per_page causes Stack level too deep error
Author: flexd
Created: 2011-11-29 13:42:29+00:00
State: open

```ruby
get '/' do
@articles = Article.paginate(:page => params[:page])
haml :articles
end
get '/articles' do
@articles = Article.paginate(:page => params[:page], :per_page => 2)
haml :articles
end
```

The first example (GET /) works fine, though I do not get any pagination links.

The second example causes a stack level too deep error.

Using gem 'will_paginate', '~> 3.0', :git => 'git://github.com/mislav/will_paginate.git'

require 'will_paginate'
require 'will_paginate/data_mapper'

I really have no idea what's going on here. It was sort of working earlier but now I just get that :s