# Where does rails loads paths?

**URL:** <https://www.ruby-forum.com/t/where-does-rails-loads-paths/164098>\
**Category:** Rails\
**Created:** [March 27, 2009, 8:52pm UTC](https://www.ruby-forum.com/t/where-does-rails-loads-paths/164098 "2009-03-27T20:52:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![elioncho](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/ed8c4c/32.png) [@elioncho](https://www.ruby-forum.com/u/elioncho)\
**Post date:** [March 27, 2009, 8:52pm UTC](https://www.ruby-forum.com/t/where-does-rails-loads-paths/164098/1 "2009-03-27T20:52:22Z")

</div>

Hi guys,

I have this in my environment and was wondering the location of the  
code that actually loads this directory:

config.load\_paths += %W( #{RAILS\_ROOT}/public/accounts/admin/lib )

I want to know the code that is used by rails to load the directories.

---

<div class="post-metadata">

**Author:** ![elioncho](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/ed8c4c/32.png) [@elioncho](https://www.ruby-forum.com/u/elioncho)\
**Post date:** [March 27, 2009, 9:29pm UTC](https://www.ruby-forum.com/t/where-does-rails-loads-paths/164098/2 "2009-03-27T21:29:18Z")

</div>

vendor/rails/railties/lib/initializer.rb

Have a look at the process method and load\_application\_classes

Alex
