Displaying 1 result from an estimated 1 matches for "rmmseg".
Did you mean:
ramsey
2008 Dec 02
5
Problem with extend rails(add new function in lib)
I do things below:
In lib/translater.rb
class Translater
require "rubygems"
require "rmmseg"
include "RMMSeg"
...
def segment(text)
RMMSeg::segment(text)
end
end
in helper/xx/xxx.rb
module xx
require "translater.rb"
def translate(text)
Translater.run(text)
end
end
when i use helper method tranlate, erros:
undefined method `segment'' for...