I have updated rails to 2.0.1. When I wrote a blog demo, I got NoMethodError *undefined method ''scaffold''* I searched with google and installed scaffolding plugin, now the undefined method ''scaffold'' has gone, but there''s still NoMethodError *undefined method `paginate'' * How can I fix this error? -- http://sourceforge.net/projects/mycodeline/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 13 dic, 08:33, "huang zhimin" <flyer...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I have updated rails to 2.0.1. When I wrote a blog demo, I got NoMethodError > *undefined method ''scaffold''* > I searched with google and installed scaffolding plugin, now the undefined > method ''scaffold'' has gone, but there''s still NoMethodError > > *undefined method `paginate'' * > > How can I fix this error?AFAIK, pagination is not included in the core Rails distribution. You have to install a plugin like will_paginate[1]. Good luck! [1] http://agilewebdevelopment.com/plugins/will_paginate --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Can it work with scaffold plugin? On Dec 13, 2007 4:41 PM, Imobach González Sosa <imobachgs-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > On 13 dic, 08:33, "huang zhimin" <flyer...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > I have updated rails to 2.0.1. When I wrote a blog demo, I got > NoMethodError > > *undefined method ''scaffold''* > > I searched with google and installed scaffolding plugin, now the > undefined > > method ''scaffold'' has gone, but there''s still NoMethodError > > > > *undefined method `paginate'' * > > > > How can I fix this error? > > AFAIK, pagination is not included in the core Rails distribution. You > have to install a plugin like will_paginate[1]. > > Good luck! > > [1] http://agilewebdevelopment.com/plugins/will_paginate > > >-- http://sourceforge.net/projects/mycodeline/ http://rubyforge.org/projects/ropenwiki/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Just install the plugin "classic_pagination", if you need the pre-2.0 default Rails pagination. / Peter 13 dec 2007 kl. 09.44 skrev huang zhimin:> Can it work with scaffold plugin? > > On Dec 13, 2007 4:41 PM, Imobach González Sosa <imobachgs-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > On 13 dic, 08:33, "huang zhimin" <flyer...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > I have updated rails to 2.0.1. When I wrote a blog demo, I got > NoMethodError > > *undefined method ''scaffold''* > > I searched with google and installed scaffolding plugin, now the > undefined > > method ''scaffold'' has gone, but there''s still NoMethodError > > > > *undefined method `paginate'' * > > > > How can I fix this error? > > AFAIK, pagination is not included in the core Rails distribution. You > have to install a plugin like will_paginate[1]. > > Good luck! > > [1] http://agilewebdevelopment.com/plugins/will_paginate > http://rubyforge.org/projects/ropenwiki/ > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Is this plugin broken? I can''t get it On Dec 13, 2007 4:47 PM, Peter Bengtson <peter-7KpGIyJoDGqUry1sbql4ngC/G2K4zDHf@public.gmane.org> wrote:> > Just install the plugin "classic_pagination", if you need the pre-2.0 > default Rails pagination. > > / Peter > > 13 dec 2007 kl. 09.44 skrev huang zhimin: > > > Can it work with scaffold plugin? > > > > On Dec 13, 2007 4:41 PM, Imobach González Sosa <imobachgs-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > wrote: > > > > On 13 dic, 08:33, "huang zhimin" <flyer...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > I have updated rails to 2.0.1. When I wrote a blog demo, I got > > NoMethodError > > > *undefined method ''scaffold''* > > > I searched with google and installed scaffolding plugin, now the > > undefined > > > method ''scaffold'' has gone, but there''s still NoMethodError > > > > > > *undefined method `paginate'' * > > > > > > How can I fix this error? > > > > AFAIK, pagination is not included in the core Rails distribution. You > > have to install a plugin like will_paginate[1]. > > > > Good luck! > > > > [1] http://agilewebdevelopment.com/plugins/will_paginate > > http://rubyforge.org/projects/ropenwiki/ > > > > > > > >-- http://sourceforge.net/projects/mycodeline/ http://rubyforge.org/projects/ropenwiki/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
For pagination use will_paginate plugin.. It sounds good.. U can install the plugin by.. 1. Navigate to the project''s root location in command prompt. 2. Type script/plugin install svn://errtheblog.com/svn/plugins/will_paginate (example: E:\Tests\cookbook>ruby script/plugin install svn://errtheblog.com/svn/plugins/will_paginate) -- 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 -~----------~----~----~----~------~----~------~--~---
And then there''s a Railscast episode on iTunes that shows how to set it up. I followed those instructions and it was easy and fast. Episode 51. Cheers, Jim On Dec 14, 2007, at 1:54 AM, Ratnavel Sundaramurthi wrote:> > For pagination use will_paginate plugin.. > > It sounds good.. > > U can install the plugin by.. > > 1. Navigate to the project''s root location in command prompt. > 2. Type script/plugin install > svn://errtheblog.com/svn/plugins/will_paginate > > (example: > E:\Tests\cookbook>ruby script/plugin install > svn://errtheblog.com/svn/plugins/will_paginate) > -- > 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 -~----------~----~----~----~------~----~------~--~---
If you wan t to use scaffolding in Rails 2.0 this is the correct answer. The Scaffolding method calls paginate, and will not work with will_paginate On Dec 13, 9:47 pm, Peter Bengtson <pe...-7KpGIyJoDGqUry1sbql4ngC/G2K4zDHf@public.gmane.org> wrote:> Just install the plugin "classic_pagination", if you need the pre-2.0 > default Rails pagination. > > / Peter > > 13 dec 2007 kl. 09.44 skrev huang zhimin: > > > Can it work with scaffold plugin? > > > On Dec 13, 2007 4:41 PM, Imobach González Sosa <imobac...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > wrote: > > > On 13 dic, 08:33, "huang zhimin" <flyer...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > I have updated rails to 2.0.1. When I wrote a blog demo, I got > > NoMethodError > > > *undefined method ''scaffold''* > > > I searched with google and installed scaffolding plugin, now the > > undefined > > > method ''scaffold'' has gone, but there''s still NoMethodError > > > > *undefined method `paginate'' * > > > > How can I fix this error? > > > AFAIK, pagination is not included in the core Rails distribution. You > > have to install a plugin like will_paginate[1]. > > > Good luck! > > > [1]http://agilewebdevelopment.com/plugins/will_paginate > >http://rubyforge.org/projects/ropenwiki/--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---