ruby on rails - No such file to load -- 'gem name' using require -
i using gem differ
https://github.com/pvande/differ
i have helper
require 'differ' module answershelper def self.getdiff (text1, text2) differ.format = :html diff = differ.diff_by_word(@current, @original) end end
but error no such file load -- differ
if remove require line error @ line
differ.format = :html
uninitialized constant questionscontroller::differ
when tried following commands in rails console worked
require 'differ' diff = differ.diff_by_word("text1","text2)
i have gem differ
in gemfile , tried
require_relative 'differ'
and
require './differ'
upd: seems restarting server helps, i'll check right now
restarting server helped........
Comments
Post a Comment