Not works with 'classic' application
Closed this issue · 2 comments
zhum commented
I use simple application like this:
require 'sinatra'
require 'sinatra/pagination'
get '/' do
...
end
But when I call 'paginate method I get error:
NoMethodError at / undefined method `paginate' for #Sinatra::Application:0x00000002742c80
Please, help!
deepfryed commented
read the example,
https://github.com/deepfryed/sinatra-paginate#example
you need to 'register' the extension before you can use it