how to require all .rb files in rails code example Example: how to require all .rb files in rails Dir["/path/to/directory/*.rb"].each {|file| require file }