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?
>
>>
>> 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
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'
Checked the log file:
NoMethodError (undefined method `paginate' for
#<PatchController:0xb77a30d4>):
/app/controllers/patch_controller.rb:172:in `patch_details'
/vendor/rails/actionpack/lib/action_controller/base.rb:1162:in
`send'
/vendor/rails/actionpack/lib/action_controller/base.rb:1162:in
`perform_action_without_filters'
/vendor/rails/actionpack/lib/action_controller/filters.rb:580:in
`call_filters'
/vendor/rails/actionpack/lib/action_controller/filters.rb:573:in
`perform_action_without_benchmark'
/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in
`perform_action_without_rescue'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in
`perform_action_without_rescue'
/vendor/rails/actionpack/lib/action_controller/rescue.rb:201:in
`perform_action_without_caching'
/vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:13:in
`perform_action'
/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in
`cache'
/vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in
`cache'
/vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:12:in
`perform_action'
/vendor/rails/actionpack/lib/action_controller/base.rb:529:in `send'
/vendor/rails/actionpack/lib/action_controller/base.rb:529:in
`process_without_filters'
/vendor/rails/actionpack/lib/action_controller/filters.rb:569:in
`process_without_session_management_support'
/vendor/rails/actionpack/lib/action_controller/session_management.rb:130:in
`process'
/vendor/rails/actionpack/lib/action_controller/base.rb:389:in
`process'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:149:in
`handle_request'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:107:in
`dispatch'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in
`synchronize'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in
`dispatch'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:120:in
`dispatch_cgi'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:35:in
`dispatch'
/var/www/vellingiri/vellingirinewpatch/public/dispatch.cgi:12
Regards,
S.Vellingiri.
--
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 [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
-~----------~----~----~----~------~----~------~--~---