On 29 August 2010 03:44, Jeff Chen <[email protected]> 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 [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.

