{"issue":{"created_at":"2011-12-08T22:18:16Z","state":"open","updated_at":"2011-12-09T17:11:55Z","comments":3,"user":{"gravatar_id":"8987b8a8b1cc862d332b9ed4ed1030e6","id":700707,"url":"https://api.github.com/users/simonszu","avatar_url":"https://secure.gravatar.com/avatar/8987b8a8b1cc862d332b9ed4ed1030e6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"simonszu"},"body":"Hi,\r\n\r\ni'm using the latest will_paginate with the latest Sinatra. You mentioned that wp will work fine with sinatra from now on. \r\nAt first, i used Sinatra in classic style, but wp made some ugly links. In the rails-forums they mentioned that wp will create pretty links when everything is mapped correctly, so i used the sinatra_more gem to map my urls. For this, i had to change from classic style to [modular style](http://www.sinatrarb.com/intro#Sinatra::Base%20-%20Middleware,%20Libraries,%20and%20Modular%20Apps). Since then, i get an undefined_method error for will_paginate in my views. ","assignee":null,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"id":2495185,"number":210,"labels":[],"title":"undefined_method for 'will_paginate'","html_url":"https://github.com/mislav/will_paginate/issues/210","closed_at":null,"url":"https://api.github.com/repos/mislav/will_paginate/issues/210","milestone":null},"action":"created","comment":{"created_at":"2011-12-09T17:11:55Z","updated_at":"2011-12-09T17:11:55Z","user":{"gravatar_id":"8f93a872e399bc1353cc8d4e791d5401","id":887,"url":"https://api.github.com/users/mislav","avatar_url":"https://secure.gravatar.com/avatar/8f93a872e399bc1353cc8d4e791d5401?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"mislav"},"body":"That's because Sinatra doesn't have a URL builder that takes defined routes into account, like Rails. To get \"prettier\" links you must override the Sinatra LinkRenderer for will_paginate to define how URLs should look like. There are no docs on this, sorry. You must use the source ;)","id":3082575,"url":"https://api.github.com/repos/mislav/will_paginate/issues/comments/3082575"}}