Forum: Ruby on Rails Confused by this error when trying to use 'pagination'

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Craig W. (Guest)
on 2006-02-15 23:38
(Received via mailing list)
Trying to create stuff without resorting to scaffold command.

I have a list view in my login_controller.rb file...

def list_users
    @user_pages, @users = paginate :users, :per_page => 14
end

I have a command in my list_users.rhtml file which undoubtedly calls
this pagination...

<%
odd_or_even = 0
for user in @users
  odd_or_even = 1 - odd_or_even
%>

and instead of being presented a list (like those that I started out
with scaffold commands...I get this error.

Unknown action
No action responded to
#<ActionController::Pagination::Paginator:0xb7ab570c>/

Wiki says...
http://wiki.rubyonrails.com/rails/pages/PaginationHelper

Pagination is included automatically for all controllers.

What gives?

Craig
This topic is locked and can not be replied to.