# Strange rails error on ubuntu 8.10

**URL:** <https://www.ruby-forum.com/t/strange-rails-error-on-ubuntu-8-10/154520>\
**Category:** Rails\
**Created:** [December 1, 2008, 6:27am UTC](https://www.ruby-forum.com/t/strange-rails-error-on-ubuntu-8-10/154520 "2008-12-01T06:27:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeff](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e19b73/32.png) [@jeff](https://www.ruby-forum.com/u/jeff)\
**Post date:** [December 1, 2008, 6:27am UTC](https://www.ruby-forum.com/t/strange-rails-error-on-ubuntu-8-10/154520/1 "2008-12-01T06:27:52Z")

</div>

Just upgraded from 8.04 to 8.10, which bumped my Ruby version to  
1.8.7, and my Rails app (frozen to 2.2.2) gets a strange error on  
startup. I can easily reproduce just by running script/about:

$ script/about  
/vendor/rails/actionpack/lib/action\_view/template\_handler.rb:11:in  
`initialize’: wrong number of arguments (0 for 1) (ArgumentError)

Anyone else having trouble with Rails on Ubuntu 8.10 and/or Rails  
1.8.7?

Jeff

---

<div class="post-metadata">

**Author:** ![jeff](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e19b73/32.png) [@jeff](https://www.ruby-forum.com/u/jeff)\
**Post date:** [December 1, 2008, 7:08am UTC](https://www.ruby-forum.com/t/strange-rails-error-on-ubuntu-8-10/154520/2 "2008-12-01T07:08:48Z")

</div>

On Nov 30, 11:26 pm, Jeff [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Jeff

This has something to do with all the eager loading of the views.  
After removing a few views trying to narrow down the problem, script/  
about now gives this:

…/activesupport/lib/active\_support/dependencies.rb:275:in  
`load\_missing\_constant’: uninitialized constant Rails::Info  
(NameError)

Any ideas?

Jeff

---

<div class="post-metadata">

**Author:** ![jeff](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e19b73/32.png) [@jeff](https://www.ruby-forum.com/u/jeff)\
**Post date:** [December 2, 2008, 12:22am UTC](https://www.ruby-forum.com/t/strange-rails-error-on-ubuntu-8-10/154520/3 "2008-12-02T00:22:12Z")

</div>

On Dec 1, 12:08 am, Jeff [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > Anyone else having trouble with Rails on Ubuntu 8.10 and/or Rails  
> > (NameError)

Perhaps another clue, maybe this will ring a bell for someone. I’m  
now slowly removing all of my views, running script/about after I  
remove each one, and now I got this error:

$ script/about  
/usr/local/lib/site\_ruby/1.8/rubygems/custom\_require.rb:31:in  
`gem_original_require': no such file to load -- rails/info (MissingSourceFile) from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require’  
from /home/jcohen/sites/pw/releases/20081201224923/vendor/rails/  
activesupport/lib/active\_support/dependencies.rb:155:in `require' from /home/jcohen/sites/pw/releases/20081201224923/vendor/rails/ railties/lib/commands/about.rb:2 from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem\_original\_require’  
from /usr/local/lib/site\_ruby/1.8/rubygems/custom\_require.rb:31:in  
`require’  
from script/about:3

I can start script/console, and checking $LOAD\_PATH reveals a few  
differences from what’s on my Mac OS X. Here’s what I get on my Mac,  
for example:

> > $LOAD\_PATH.select { |p| p =~ /railties/ }  
> > =\> [“/Users/jcohen/dev/pw/config/…/vendor/rails/railties/lib/…/  
> > builtin/rails\_info/”, “/Users/jcohen/dev/pw/vendor/rails/railties”, “/  
> > Users/jcohen/dev/pw/vendor/rails/railties/lib”, “/Users/jcohen/dev/pw/  
> > config/…/vendor/rails/railties/lib”]

Notice that first path to builtin/rails\_info. Doing the same on my  
Ubuntu/Ruby 1.8.7 box shows this:

> > $LOAD\_PATH.select { |p| p =~ /railties/ }  
> > =\> [“/home/jcohen/sites/pw/releases/20081201224923/vendor/rails/  
> > railties”, “/home/jcohen/sites/pw/releases/20081201224923/vendor/rails/  
> > railties/lib”, “/home/jcohen/sites/pw/releases/20081201224923/  
> > config/…/vendor/rails/railties/lib”]

In other words, the path to railsties/lib…/builtin/rails\_info is not  
there! And if the load path is messed up, then I bet other things are  
also.

I’ve tried unfreezing rails and using 2.2.2 gems, with the same result

- so it’s not the result of a borked version of vendor/rails.

Any ideas?

Thanks  
Jeff
