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
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
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,
> 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
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
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
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
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
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
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
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
Ä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
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/.
--~--~-~--~~~---~--
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
14 matches
Mail list logo