I'm trying to figure out why config.gem seems to cause problems.
I have installed two gems 'will_paginate' and 'searchlogic' that need to
be declared in the environment.rb file in order to be useful. I
installed 'will_paginate' first.
After putting the config.gem 'will_paginate' command in my
environment.rb, i rebooted mongrel only to get:
=> Booting Mongrel
=> Rails 2.3.5 application starting on http://0.0.0.0:3000
`requirement': stack level too deep (SystemStackError)
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems.rb:210:in `activate'
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems.rb:1056:in `gem'
... 10 levels...
from -e:2:in `load'
I removed the config line and it went away. Of course, this wasn't good
enough since I wanted the will_paginate functionality. Finally i
discovered if I replaced the config.gem command with a require
'will_paginate' line at the end of the file I could avoid the error spam
and still get my functionality.
Here is the text of my environment.rb file without comments: