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 in env. The server uses the same version 2.2.2. And the same rails version and everything. -- Posted via http://www.ruby-forum.com/.
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 <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>> > 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 in env. > > The server uses the same version 2.2.2. And the same rails version and > everything. > -- > Posted via http://www.ruby-forum.com/. > > > >-- Paulo Roberto Webdesigner Fortaleza - CE --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
How is your server configured? Mongrel, passenger? Have you vendored your gems? Cheers, Nicholas On Jul 14, 5:04 pm, Pål Bergström <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> 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 in env. > > The server uses the same version 2.2.2. And the same rails version and > everything. > -- > Posted viahttp://www.ruby-forum.com/.
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/.
Ä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 will_paginate. It was on the server, I think, but didn''t work. Or maybe it wasn''t. Anyway, when I do "gem list" I get a long, long list of gems, and one of them is "will_paginate". -- Posted via http://www.ruby-forum.com/.
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 <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Ä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 > will_paginate. It was on the server, I think, but didn''t work. Or maybe > it wasn''t. Anyway, when I do "gem list" I get a long, long list of gems, > and one of them is "will_paginate". > -- > Posted viahttp://www.ruby-forum.com/.
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 <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>I tried that and it didn''t work. "could not find gem mislav-will_paginate locally or in a repository" -- Posted via http://www.ruby-forum.com/.
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 <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>It worked with "sudo gem install mislav-will_paginate -s http://gems.github.com" Now I got mislav-will_paginate in my gem list. Do I need to make any changes in my code? -- Posted via http://www.ruby-forum.com/.
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 previous ''will_paginate'' gem. Now it works. -- Posted via http://www.ruby-forum.com/.