Klairvoyant infosolution's Blog

include and require in rails

john

require

The require keyword includes files in your include path (e.g., lib, your Ruby load path, and so on).

include

The include keyword mixes modules into classes, so it needs to be inside a class to be used.