this is my action list: def list lista = session[:usuario].empresa.obras.find(:all, :conditions => [''concluida = 0 and publica = 1 or usuario_id = ?'', session[:usuario]]) @obra_pages, @obras = paginate lista, :per_page => 10 end however, appear this error message: "#<Obra:0x46ffb90>#<Obra:0x46ff5a0>" is not a valid constant name! Now the question. How make for using "@obra_pages, @obras = paginate lista, :per_page => 10" in place of "@obra_pages, @obras = paginate :obras, :per_page => 10" -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---