Fritz Trapper wrote:
I need a helper function to read cvs data into my database. I do not
need this function later in the web application.
My idea was to write a function inside a controller or AcriveRecord
These are both probably the wrong place for it. You probably want a
non-AR class or module to hold at least some of the code.
But I dont get it called via server/console.
How do do this?
You may have to load the relevant class or include the relevant module.
But it probably should be a Rake task...