From: Jeff Chen <jeffchen1...@gmail.com>
Date: Sun, 29 Aug 2010 05:10:59 -0700 (PDT)
Local: Sun, Aug 29 2010 8:10 am
Subject: Re: will_paginate
Dear Colin,
Thanks.
1. The environment.rb:
RAILS_GEM_VERSION = '2.3.8' unless defined? RAILS_GEM_VERSION
# Bootstrap the Rails environment, frameworks, and default
Rails::Initializer.run do |config|
# Specify gems that this application depends on and have them
# Only load the plugins named here, in the order given (default is
# Skip frameworks you're not going to use. To use Rails without a
# Activate observers that should always be running
# Set Time.zone default to the specified zone and make Active Record
# The default locale is :en and all translations from config/locales/
end
2. The output of gem list --local:
3. The full error MSG:
undefined method `paginate' for #<Class:0x679f940>
On 8月29日, 下午3時35分, Colin Law <clan...@googlemail.com> wrote:
> 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
> 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
> Colin You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||