The @automaton variable appears to be empty. Did you forget to pass the collection object for will_paginate?

Hi,
   I Got will_paginate as gem and added required things is config/
environment.rb.

  My controller code,
------>8--------
  @triedmails = Triedmail.paginate :all, :page => params[:page]
------8<-------
My view code,
------>8--------
<%= will_paginate @triedmails%>
------8<-------

It is throwing,

Looking at the code, this is what you'd get if @triedmails was nil

Fred