RoR 學習筆記 - 錯誤訊息 undefined method xxx for ...
我的Class 定義如下:
使用
Test.play # => NoMethodError: undefined method ‘play’ for Test:Class
Test.new.play # => Hello World
Class Test
def Play
"Hello World"
end
end
使用
Test.play # => NoMethodError: undefined method ‘play’ for Test:Class
Test.new.play # => Hello World
留言
張貼留言