2009/9/21 Arul hari <[email protected]>: > > Colin Law wrote: >> 2009/9/21 Arul hari <[email protected]>: >>> >>> Dear Friends, >>> Now the old rails application is working fine. I have re-created >>> the rails application with existing one. For instance rails >>> /home/vellingiri/Isync. I did not overwrite the controller part, the >>> remaining part I created the new file. >> >> For the record what was it that fixed the original problem?
You did not answer this question. You should provide feedback here so that others with similar problems who find this thread will know the solution >> >>> >>> undefined method `paginate' for #<PatchController:0xb7b2ff18> >>> >>> RAILS_ROOT: /xhome/vellingiri/public_html/vellingirinewpatch >>> >> >> Have you remembered to install will_paginate? >> Google for mislav-will_paginate if you don't know what this is. >> >> Colin > > > I have installed both gem packages ( will_paginate, mislav-will_paginate > ). It was installed successfully. Also I have required the module in > environment.rb file. Still the same problem is persists. Even if I take > out the require from the environment file, the same error is coming. Any > ideas? > > MESSAGE: > velling...@webdevel:~/public_html/vellingirinewpatch$ gem > install will_paginate > Successfully installed will_paginate-2.2.2 > 1 gem installed > Installing ri documentation for will_paginate-2.2.2... > Installing RDoc documentation for will_paginate-2.2.2... > velling...@webdevel:~/public_html/vellingirinewpatch$ gem install > mislav-will_paginate > ERROR: could not find gem mislav-will_paginate locally or in a > repository You say you installed both but the this says it did not install mislav, but it installed will_paginate so it should be ok. What does 'gem list' show? > velling...@webdevel:~/public_html/vellingirinewpatch$ vim /et > etc/ etc.tar.gz > velling...@webdevel:~/public_html/vellingirinewpatch$ vim config/envi > environment.rb environments/ > velling...@webdevel:~/public_html/vellingirinewpatch$ vim > config/environment.rb > require 'will_paginate' Can you post environment.rb, it is not clear from above what you have there. Also post the section of the controller that generate the undefined method error. > Checked the log file: > NoMethodError (undefined method `paginate' for > #<PatchController:0xb77a30d4>): > /app/controllers/patch_controller.rb:172:in `patch_details' You should not have had to check the log file, this should have appeared in the browser. Are you running in development mode? Colin --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

