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

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and 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

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

Wiki says...

Pagination is included automatically for all controllers.

What gives?

This topic is locked and can not be replied to.