will Paginate problem

in order to use will paginate i have update my rails app from 1.2.3 to
1.2.6
but i have the same pagination problem when i was use rails 1.2.3 that
page counted normaly ,but it showes all records on the same page
this is the code in my admin_controller:
  def list
   @exams = Exam.paginate :page => params[:page], :per_page => 10
  end
this is in my view
  <%=will_paginate @exams%>
pleas help me .

I have used will_paginate with Rails 1.2.3, 1.2.6, and 2.0.2. See if
adding ':all' does anything for you:

@exams = Exam.paginate(:all,
                                                  :page =>
params[:page],
                                                  :per_page => 10)

I assume that you have more than 10 exam records. If this doesn't
help, please provide any log info that might help.

-Kyle

i have added :all ,and it works .actually i have done it on view side
before you mention it ,this was my mistake .thanks