Hi I have installed mt940 gem file and trying to access its methods as follows
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
but um getting an error
NameError in HomePageController#aboutus
uninitialized constant MT940::Base
Um quite new to ruby on rails and I do not have a clue about it. If any one can help thank you
I also included MT940 parser gem along with MT940. Because of that I got a different implementation and once I removed MT940 parser it worked.