# helpers/fun_helper.rb -- Note: this works fine from the
fun_controller
module FunHelper
def test_foo2
"test"
end
end
# test_controller.rb
class TestController < ApplicationController
helper :fun
end
# views/test/index.rhtml
<html>
<body>
<%= test_foo2 %>
</body>
</html>
I am getting the following error:
>> undefined local variable or method `test_foo2' for ...
Thank you,
Mike