您好我已经安装了 mt940 gem 文件并尝试访问它的方法如下
require 'mt940'
#require 'mt940_parser'
class HomePageController < ApplicationController
def aboutus
#read all the files
Dir.foreach(directory_path) do |item|
puts item + "\n"
MT940::Base.transactions(item)
end
end
end
但是嗯出错了
NameError in HomePageController#aboutus
uninitialized constant MT940::Base
嗯,对 ruby on rails 很陌生,我对此一无所知。如果有人可以帮忙谢谢