You should set layout to false
to disable it.
For your case use this:
setup :pager do
layout false
end
Perhaps not really intuitive but it is done like this to avoid redundant options like exclude
, except
, only
etc.
You also can skip setup and use render_partial
:
def pager
render_partial # or render_p
end