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 > class.
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... Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

