require 'pgplot' class SomeController < ApplicationController include Pgplot end
Tom wrote:
require 'pgplot' class SomeController < ApplicationController include Pgplot end
Tom wrote:
The require keyword includes files in your include path (e.g., lib,
your Ruby load path, and so on). The include keyword mixes modules
into classes, so it needs to be inside a class to be used.
--Jeremy