Using Paginator outside of controllers

I am doing this in _messages.rthml:
<% shout_pages = self,
@params[‘page’] %>
<% shouts = Shout.find :all,
:order => “timestamp desc”,
:limit => @story_pages.items_per_page,
:offset => @story_pages.current.offset %>

I am calling the _messages.rhtml with:
<%= render :partial => ‘/shout/messages’ %>

However, I keep getting “uninitialized constant Paginator”

Is this normal? Are you supposed to be able to use Paginator outside
of controllers?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs