I sometimes get bizarre startup error messages from script/server. The answer? Always check script/console if you’re getting something odd.
Here I am trying to use script/server:
rails-1.2.3/lib/commands/servers/mongrel.rb:18: undefined method `options' for []:Array (NoMethodError)
Huh? Let’s try script/server webrick:
vendor/plugins/loaded_plugins/lib/loaded_plugins.rb:21: in `<<': can't modify frozen array (TypeError)
Still no good… let’s try script/console:
ruby/vendor_ruby/1.8/rubygems.rb:251: in `report_activate_error': Could not find RubyGem gettext (>= 0.0.0) (Gem::LoadError)
Oh, just install the gettext gem!



