# Edge rails fix

**URL:** <https://www.ruby-forum.com/t/edge-rails-fix/103158>\
**Category:** Typo\
**Created:** [May 2, 2007, 3:45pm UTC](https://www.ruby-forum.com/t/edge-rails-fix/103158 "2007-05-02T15:45:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![James\_Nelson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/977dab/32.png) [@James\_Nelson](https://www.ruby-forum.com/u/James_Nelson)\
**Post date:** [May 2, 2007, 3:45pm UTC](https://www.ruby-forum.com/t/edge-rails-fix/103158/1 "2007-05-02T15:45:21Z")

</div>

There was a problem when running in edge rails, due to the localization  
plugin occuring twice in environment.rb. The fix was to change line 21  
in  
environment.rb from :

config.plugins.push("#{dir}") if  
File.directory?("#{RAILS\_ROOT}/vendor/plugins/#{dir}/lib")

to:

config.plugins.push("#{dir}") if  
(File.directory?("#{RAILS\_ROOT}/vendor/plugins/#{dir}/lib")  
&& dir != ‘localization’)

For the record, i’m using typo 4.1.
