sadeesh kumar
2008-Jun-27 04:57 UTC
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, --------------------- The @automaton variable appears to be empty. Did you forget to pass the collection object for will_paginate? Extracted source (around line #1): 1: <%= will_paginate @triedmails%> -------------------- I never pass a variable named @automaton. But I don''t know where it is throwing like this. But my controller name is automatoncontroler. Could any one explain me? -Sadeesh. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Frederick Cheung
2008-Jun-27 08:20 UTC
Re: The @automaton variable appears to be empty. Did you forget to pass the collection object for will_paginate?
On Jun 27, 5:57 am, sadeesh kumar <sadath...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> <%= will_paginate @triedmails%> > ------8<------- > > It is throwing, > --------------------- > The @automaton variable appears to be empty. Did you forget to pass > the collection object for will_paginate? >Looking at the code, this is what you''d get if @triedmails was nil Fred --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---