[Rails] Re: undefined method `paginate' for # in Rails Tutorial

2013-10-26 Thread Kashif Umair Liaqat
I am a little late in discussion but I've the solution to the problem :) If you are using rails 4 then try this. @users = User.all.paginate(page: params[:page] Note that User.all will be an ActiveRelation on which paginate method works. If you are using rails 3 then try this. @users = User.w

[Rails] Re: undefined method `paginate'

2012-05-24 Thread Matt Jones
On Tuesday, 22 May 2012 09:37:04 UTC-4, Ruby-Forum.com User wrote: > > I am working with Railsspace social networking book. I stuck in the > problem when i am doing paginate for the search result. It gives the > following error. > > Don't use that book - it's severely outdated and will cause y

[Rails] Re: undefined method `paginate'

2012-05-23 Thread Juan Pablo Avello
El miércoles, 23 de mayo de 2012 08:31:51 UTC+2, Ruby-Forum.com User escribió: > > > You dont have a "def paginate " method defined in your controller. > > Anyway you'll probably want to use a pagination gem such as Kaminari, > > which > > includes all you need for that purpose. > > Hi Juan,

[Rails] Re: undefined method `paginate'

2012-05-22 Thread Amir Z.
> You dont have a "def paginate " method defined in your controller. > Anyway you'll probably want to use a pagination gem such as Kaminari, > which > includes all you need for that purpose. Hi Juan, Thanks for the help message. Juan I am newbie on ROR could you please help me how to install kam

[Rails] Re: undefined method `paginate'

2012-05-22 Thread Juan Pablo Avello
El martes, 22 de mayo de 2012 15:37:04 UTC+2, Ruby-Forum.com User escribió: > > I am working with Railsspace social networking book. I stuck in the > problem when i am doing paginate for the search result. It gives the > following error. > > NoMethodError in CommunityController#index > > unde

[Rails] Re: undefined method `paginate'

2009-12-08 Thread Jacolyte
It's actually will_paginate. The gem's homepage is here: http://wiki.github.com/mislav/will_paginate On Nov 26, 3:00 am, Artem Korolev wrote: > yuor must install plugin\gem (for ex.) sudo gem install wiil_paginate > > 2009/11/26 INDRANIL MUKHERJEE : > > > while running my application I get this e

[Rails] Re: undefined method `paginate'

2009-07-15 Thread Pål Bergström
Paulo Silva wrote: > post the message error please, for analyse. > > case the problem is to require your gem will_paginate, do you need > require > this will_paginate in the archive enviroment.rb, > ex: require 'will_paginate' I have require 'will_paginate' I also had to uninstall the previou

[Rails] Re: undefined method `paginate'

2009-07-15 Thread Paulo Silva
post the message error please, for analyse. case the problem is to require your gem will_paginate, do you need require this will_paginate in the archive enviroment.rb, ex: require 'will_paginate' Att. Paulo Silva 2009/7/14 Pål Bergström > > How come I get this error? I have the same setup on

[Rails] Re: undefined method `paginate'

2009-07-15 Thread Pål Bergström
Matt Jones wrote: > BTW, if your gem is just plain will_paginate, it is VERY old. Unless > I'm mistaken, development has moved to GitHub, and the preferred gem > is now mislav-will_paginate. > > --Matt Jones > > On Jul 15, 2:47�am, P�l Bergstr�m It worked with "sudo gem install mislav-will_pag

[Rails] Re: undefined method `paginate'

2009-07-15 Thread Pål Bergström
Matt Jones wrote: > BTW, if your gem is just plain will_paginate, it is VERY old. Unless > I'm mistaken, development has moved to GitHub, and the preferred gem > is now mislav-will_paginate. > > --Matt Jones > > On Jul 15, 2:47�am, P�l Bergstr�m I tried that and it didn't work. "could not find

[Rails] Re: undefined method `paginate'

2009-07-15 Thread Matt Jones
BTW, if your gem is just plain will_paginate, it is VERY old. Unless I'm mistaken, development has moved to GitHub, and the preferred gem is now mislav-will_paginate. --Matt Jones On Jul 15, 2:47 am, Pål Bergström wrote: > Älphä Blüë wrote: > > It's a common issue depending on how your setup ex

[Rails] Re: undefined method `paginate'

2009-07-14 Thread Pål Bergström
Älphä Blüë wrote: > It's a common issue depending on how your setup exists. If you are > having a lot of difficulty with it, you can install the plugin instead > which will fix the error you are having usually 95% of the time. I solved it. I just needed to create a local gem and then install

[Rails] Re: undefined method `paginate'

2009-07-14 Thread Älphä Blüë
It's a common issue depending on how your setup exists. If you are having a lot of difficulty with it, you can install the plugin instead which will fix the error you are having usually 95% of the time. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--

[Rails] Re: undefined method `paginate'

2009-07-14 Thread Nicholas Henry
How is your server configured? Mongrel, passenger? Have you vendored your gems? Cheers, Nicholas On Jul 14, 5:04 pm, Pål Bergström wrote: > How come I get this error? I have the same setup on my local dev machine > as the server where I get the error, using the will_paginate gem and > require