From: Florian Frank Date: 2005-11-26T08:00:03+09:00 Subject: Re: What's the difference between require and require_dependency? Dan Bikle wrote: >People, >What's the difference between require and require_dependency? > >I looked here for clues: >http://www.ruby-doc.org/core/ >and I could not find either one. > > require loads a file (shared object or ruby source) once from the load path. require_dependency isn't a ruby core feature, it's part of rails. It remembers the given file and loads it on each new server request (like load "path/file.rb" does), if development mode is enabled: http://wiki.rubyonrails.com/rails/pages/RequireDependency -- Florian Frank