Yes, I put it before the end, then the <NameError> is passed. But the undefined method `paginate' for #<Class:0x6782980> is happened again.
On 8月25日, 下午5時58分, Frederick Cheung <frederick.che...@gmail.com> wrote: > On 25 Aug 2010, at 10:42, Jeff Chen <jeffchen1...@gmail.com> wrote: > > > > > I write the config.gem 'will_paginate' in the inside of > > environment.rb, but got below error msg: > > > undefined local variable or method 'config' for main Object > > <NameError> > > > How to fix it? Thanks. > > You're probably putting it in the wrong place. What does your environment.rb > look like > > Fred > > > -- > > 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 > > athttp://groups.google.com/group/rubyonrails-talk?hl=en. -- 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.