On 29 August 2010 03:44, Jeff Chen <jeffchen1...@gmail.com> wrote: > Thanks. > > But I config.gem 'will_paginate' before the end of environment.rb and > f the will_paginate is already installed but not worked. Got the > undefined method `paginate' for #<Class:0x653996c> Why? May you give > me a hint, or sample, let me fix it up.
config.gem must go inside the initializer.run block, not just before the end. Post your environment.rb if you think you have it correctly, also the output of gem list --local and the full error that you are getting. 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 rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.