i'm working on refinerycms, trying to add preview feature to news like pages, i'm trying to include my own helper to a controller, 'include' does not works, but 'helper' works.
sample code:
module Refinery
module News
module Admin
class PreviewController < ActionController::Base
#include LayoutHelper # not ok
helper LayoutHelper # Ok
end
end
end
end
i've read the api, helper is working like 'require and include', but i don't know the real difference here.
thanks !