Ok, I know this is a simple question, but I can't get it to work. I installed the SmarterCSV gem in my Rails 4 application and am trying to use it in my controller as follows:
SmarterCSV.process("/files/csv_file.csv")
I can do this exact process in the rails console for this application, but I cannot get it to work in my controller. Every time I just get a Rails Dead Screen talking uninitialized constant MyController::SmarterCSV. I tried to add a line
require 'smarter_csv'
But it also breaks to the Rails Dead screen with an error cannot load such file -- smarter_csv
Any help would be greatly appreciated, I'm not quite sure what I can do ...
source
share