# Updated to 1.2.2. and it doesn't run anymore

**URL:** <https://www.ruby-forum.com/t/updated-to-1-2-2-and-it-doesnt-run-anymore/88415>\
**Category:** Rails\
**Created:** [March 10, 2007, 8:08pm UTC](https://www.ruby-forum.com/t/updated-to-1-2-2-and-it-doesnt-run-anymore/88415 "2007-03-10T20:08:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dxk3355](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/d6d6ee/32.png) [@dxk3355](https://www.ruby-forum.com/u/dxk3355)\
**Post date:** [March 10, 2007, 8:08pm UTC](https://www.ruby-forum.com/t/updated-to-1-2-2-and-it-doesnt-run-anymore/88415/1 "2007-03-10T20:08:10Z")

</div>

hi!

after installing 1.2.2 (gem update --system)  
changing the version in environment.rb and  
doing rake rails:update , I get this, when trying to start the sever:

> ruby script/server --binding localhost  
> =\> Booting WEBrick…  
> d:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active\_support/dependenci  
> es.rb:266:in `load_missing_constant': uninitialized constant ActionMailer (NameE rror) from d:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_suppo rt/dependencies.rb:452:in`const\_missing’  
> from  
> d:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active\_suppo  
> rt/dependencies.rb:464:in `const_missing' from ./script/../config/../config/environment.rb:20 from d:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/initializer.rb:41:in`run’  
> from ./script/…/config/…/config/environment.rb:13  
> from  
> d:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in `re  
> quire’

Any ideas?

thank you

---

<div class="post-metadata">

**Author:** ![dxk3355](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/d6d6ee/32.png) [@dxk3355](https://www.ruby-forum.com/u/dxk3355)\
**Post date:** [March 10, 2007, 9:24pm UTC](https://www.ruby-forum.com/t/updated-to-1-2-2-and-it-doesnt-run-anymore/88415/2 "2007-03-10T21:24:46Z")

</div>

On 10-Mar-07, at 2:08 PM, D. Krmpotic wrote:

> active\_support/dependenci  
> from  
> d:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/initializer.rb:41:in  
> `run' from ./script/../config/../config/environment.rb:13 from d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `re  
> quire’
> 
> Any ideas?
> 
> thank you

try this ref:

[http://groups.google.com/group/rubyonrails-talk/browse\_thread/thread/](http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/)  
f5709dd73639a23c/3862585f75a2cb22?lnk=gst&q=1.2.2  
+actionmailer&rnum=5#3862585f75a2cb22

Jodi

---

<div class="post-metadata">

**Author:** ![dxk3355](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/d6d6ee/32.png) [@dxk3355](https://www.ruby-forum.com/u/dxk3355)\
**Post date:** [March 11, 2007, 11:47am UTC](https://www.ruby-forum.com/t/updated-to-1-2-2-and-it-doesnt-run-anymore/88415/3 "2007-03-11T11:47:02Z")

</div>

Thank you. You shown me where the problem lies, but I still cannot make  
it work…  
When I comment out all the lines for ActionMailer settings, the app  
runs.  
But when I change

ActionMailer::Base.server\_settings = {

to

config.action\_mailer.server\_settings.server\_settings = {

I get:

d:\Rails\ThoughtBag\>ruby script/server --binding localhost  
=\> Booting WEBrick…  
./script/…/config/…/config/environment.rb:23: undefined method  
`server_setting s=' for nil:NilClass (NoMethodError) from d:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/initializer.rb:41:in `run’

Now that I know the problem is in action mailer, I found a few other  
things on the net, one suggestion is to use:

ActionMailer::Base.delivery\_method = :smtp  
ActionMailer::Base.smtp\_settings = {  
:address =\> “[smtp.mymailserver.com](http://smtp.mymailserver.com)”,  
:authentication =\> :login,  
:user\_name =\> “me”,  
:password =\> “password”  
}

This doesn’t help either (fails with the same error about ActionMailer  
being an unitialized constant)

hmm… thank you for the help!

david

Jodi S. wrote:

> On 10-Mar-07, at 2:08 PM, D. Krmpotic wrote:
> 
> > active\_support/dependenci  
> > from  
> > d:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/initializer.rb:41:in  
> > `run' from ./script/../config/../config/environment.rb:13 from d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `re  
> > quire’
> > 
> > Any ideas?
> > 
> > thank you
> 
> try this ref:
> 
> [http://groups.google.com/group/rubyonrails-talk/browse\_thread/thread/](http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/)  
> f5709dd73639a23c/3862585f75a2cb22?lnk=gst&q=1.2.2  
> +actionmailer&rnum=5#3862585f75a2cb22
> 
> Jodi
