Displaying 1 result from an estimated 1 matches for "splitbonusunit".
2008 Mar 17
2
NoMethodError (...occurred while evaluating nil.split)
...t it!
You might have expected an instance of Array.
The error occurred while evaluating nil.split
The error is raised on function call line of the ''.html.erb'' file.
The function is present in the relevant ''helper.rb'' file and contains
the following:
[code]
def splitBonusUnit(data)
@returnValue = @data.split(/ /)
return @returnValue
end
[/code]
The ''data'' value passed into the function is confirmed to be "2 3"; when
the code @data.split(/ /) is entered into the Ruby shell it works and
expected and ["2", "3"] is return...