Running rails 1.2.2 in \vendor\rails problems

0 views
Skip to first unread message

Giant Cranes

unread,
Feb 8, 2007, 12:25:14 PM2/8/07
to rubyonra...@googlegroups.com
Hi,

I am trying to move from gem rails to edge rails (well, 1.2.2 with a
patch). I have been running gem rails 1.2.2 successfully.

When I do a svn:externals to tag rel_1-2-2
[http://dev.rubyonrails.org/svn/rails/tags/rel_1-2-2/] the rails code is
placed in \vendor\rails\ as expected.

I do, however, get error messages when trying to start webrick (error
messages included below).

Am I correct in using tag rel_1-2-2?
Is it the same code as the latest release 1.2.2?
If so, why am I getting error messages?

Thanks for any help,
GiantCranes


---
Error Messages when starting webrick:
---

ruby script/server
Booting WEBrick...
script/../config/../vendor/rails/activesupport/lib/active_support/de
b:266:in `load_missing_constant': uninitialized constant ActionMaile
)
from ./script/../config/../vendor/rails/activesupport/lib/acti
ependencies.rb:452:in `const_missing'
from ./script/../config/../vendor/rails/activesupport/lib/acti
ependencies.rb:464:in `const_missing'
from ./script/../config/../config/environment.rb:45
from ./script/../config/../vendor/rails/railties/lib/initializ
`run'
from ./script/../config/../config/environment.rb:14
from P:/Program Files/Ruby/lib/ruby/site_ruby/1.8/rubygems/cus
rb:27:in `gem_original_require'
from P:/Program Files/Ruby/lib/ruby/site_ruby/1.8/rubygems/cus
rb:27:in `require'
from ./script/../config/../vendor/rails/activesupport/lib/acti
ependencies.rb:495:in `require'
... 8 levels...
from ./script/../config/../vendor/rails/railties/lib/commands/

from P:/Program Files/Ruby/lib/ruby/site_ruby/1.8/rubygems/cus
rb:27:in `gem_original_require'
from P:/Program Files/Ruby/lib/ruby/site_ruby/1.8/rubygems/cus
rb:27:in `require'
from script/server:3

--
Posted via http://www.ruby-forum.com/.

Keynan Pratt

unread,
Feb 8, 2007, 12:29:41 PM2/8/07
to rubyonra...@googlegroups.com
Not sure but I would bet that your problem is that you installed your
scripts (script/server) using gem and now it cant find that vender
files.

Hope this helps

Giant Cranes

unread,
Feb 8, 2007, 12:30:41 PM2/8/07
to rubyonra...@googlegroups.com
Keynan Pratt wrote:
> Not sure but I would bet that your problem is that you installed your
> scripts (script/server) using gem and now it cant find that vender
> files.
>
> Hope this helps

If that is the problem, how would I address it?

Giant Cranes

unread,
Feb 8, 2007, 12:53:45 PM2/8/07
to rubyonra...@googlegroups.com
I have narrowed it down to the ActionMailer config:

ActionMailer::Base.server_settings = {
:address => 'mail.server.com',
:port => 25,
:domain => 'www.server.com',
:user_name => 'ma...@server.com',
:password => 'password',
:authentication => :login
}

When I comment this out, the application starts successfully. I am
unsure why this is causing an error, but I will post again here if I do
find out for completeness.

Thanks for your help

Stever

unread,
Feb 28, 2007, 1:49:34 AM2/28/07
to Ruby on Rails: Talk
This can be solved by changing:

> ActionMailer::Base.server_settings = {
> :address => 'mail.server.com',
> :port => 25,
> :domain => 'www.server.com',
> :user_name => '...@server.com',

> :password => 'password',
> :authentication => :login
> }

- to -

> config.action_mailer.server_settings.server_settings = {


> :address => 'mail.server.com',
> :port => 25,
> :domain => 'www.server.com',

> :user_name => '...@server.com',


> :password => 'password',
> :authentication => :login
> }


On Feb 8, 9:53 am, Giant Cranes <rails-mailing-l...@andreas-s.net>
wrote:


> I have narrowed it down to theActionMailerconfig:
>
> ActionMailer::Base.server_settings = {
> :address => 'mail.server.com',
> :port => 25,
> :domain => 'www.server.com',

> :user_name => '...@server.com',

Reply all
Reply to author
Forward
0 new messages