Hi, I don''t speak English very well, and I have a problem, with the gem mislav-will-paginate I install perfect, the las version 2.3.11 and I did the example http://dev.nozav.org/rails_ajax_table.html and I copy all!! My problem is this: NoMethodError in ItemController#list undefined method `paginate'' for #<ItemController:0x53dd614> None Show session dump --- Response Headers: {"Content-Type"=>"", "Cache-Control"=>"no-cache"} I find a lot of information for this error but I don''t know. The problem is this line in controller: @items_pages, @items = paginate :items, :order => sort, :conditions => conditions, :per_page => items_per_page Rails 2.3.3 RubyGems 1.8 Mongrel server I have install the will-paginate gem an other problably I have problem with this?? Thank you!!!! -- Posted via http://www.ruby-forum.com/.
On Aug 18, 5:36 pm, Soller Prieto <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> The problem is this line in controller: > > @items_pages, @items = paginate :items, :order => sort, :conditions => > conditions, :per_page => items_per_pageThat tutorial is written for people using classic_pagination, which is not the same as will_paginate. Fred> > Rails 2.3.3 > RubyGems 1.8 > Mongrel server > > I have install the will-paginate gem an other problably I have problem > with this?? > Thank you!!!! > -- > Posted viahttp://www.ruby-forum.com/.
Hi,everybody I write a code like follow,the question was "paginate" has been drop until the rails 2.0,now we use "will_paginate" to replace it.But I don''t know how to change my code to let it suitable. ----------------------------------------------------------------------------------------------------- def index @page_title = "Book List" @book_pages,@books = Book.paginate :books, :per_page => 10, :include => [:authors, :publishers], :order => "books.id desc" ------------------------------------------------------------------------------------------------- So,I want may be somebody can help .
Sure, read this page for the info: http://github.com/mislav/will_paginate/tree/master -- Posted via http://www.ruby-forum.com/.
Thanks,I had deal with the problem . On Thu, Sep 3, 2009 at 12:10 AM, Ar Chron <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>wrote:> > Sure, read this page for the info: > > http://github.com/mislav/will_paginate/tree/master > -- > Posted via http://www.ruby-forum.com/. > > > >-- Sons of Gondor, of Rohan, my brothers! I see in your eyes the same fear that would take the heart of me. A day may come when the courage of men fails when we forsake our friends and break all bonds of fellowship. But this is not this day. And hour of wolves and shattered shields when the age of Men comes crashing down. But this is not this day! This day we fight! By all that you hold dear on this good earth, I bid you stand! Men of the West! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---