I want a plugin to supply me with additonal helpers like this:
#/vendor/plugins/test_plugin/init.rb
module ApplicationHelper
def test_helper
‘does this work?’
end
end
Contrary to my expectation, the method “test_helper” is not
available in my views…
I thought that maybe the module ApplicationHelper is namespaced
inside some other class, but I can’t find anything about that in the
source code.
ApplicationHelperI’m running Rails 0.14.3.
I thought that maybe the module ApplicationHelper is namespaced
inside some other class, but I can’t find anything about that in the
source code.
ApplicationHelperI’m running Rails 0.14.3.
The problem is that the ApplicationHelper module does not exist at the
moment the plugins are loaded. I too thought ApplicationHelper would
simply be reopened, but it doesn’t work that way.
As suggested by Trevor S. in the RFC Flash Standardization thead
[1], I simply sent the include to ActionView::Base instead.