Displaying 1 result from an estimated 1 matches for "applicaitonhelp".
Did you mean:
applicaitonhelper
2009 Apr 12
4
Can't get an Array function to be visible inside ApplicationHelper
...I capture the same code in a test.rb file (adding a
require ''enumerator'' at the top of the file for the enum_with_index
function) and run it with "ruby test.rb" it seems to work fine.
Any thoughts on why the code above is not seeing the Array instance
method to_h in the ApplicaitonHelper? I also tried changing it to
class method by changing the declaration to self.to_h but get the same
error. Somehow the to_h method is not visible to the ["school_admin",
"General2"] Array and I don''t understand why. I have tried restarting
the server but get the same...