# Unused local variable load\_error in boot.rb

**URL:** <https://www.ruby-forum.com/t/unused-local-variable-load-error-in-boot-rb/167783>\
**Category:** Rails\
**Created:** [May 12, 2009, 2:40pm UTC](https://www.ruby-forum.com/t/unused-local-variable-load-error-in-boot-rb/167783 "2009-05-12T14:40:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [May 12, 2009, 2:40pm UTC](https://www.ruby-forum.com/t/unused-local-variable-load-error-in-boot-rb/167783/1 "2009-05-12T14:40:45Z")

</div>

I’m getting an ‘Unused local variable load\_error’ in my .config/  
boot.rb

This seems to be the problem code:

```
rescue Gem::LoadError => load_error
  $stderr.puts %(Missing the Rails #{version} gem. Please `gem

```

install -v=#{version} rails`, update your RAILS\_GEM\_VERSION setting in  
config/environment.rb for the Rails version you do have installed, or  
comment out RAILS\_GEM\_VERSION to use the latest version installed.)  
exit 1  
end

Should I put in my current Rails version?  
What is this looking for?  
Will this freeze my system?  
Do I have to change this when I update gems or rails?

My .config/environment.rb file reads as follows [comments removed]

RAILS\_GEM\_VERSION = ‘2.3.2’ unless defined? RAILS\_GEM\_VERSION  
require File.join(File.dirname( **FILE** ), ‘boot’)  
Rails::Initializer.run do |config|  
config.time\_zone = ‘UTC’  
end

Any help will be greatly appreciated. Thanks in advance,  
Wayne
