I am about to start drawing outside the lines for the first time, and I
had a strange question. I have been following the rails conventions
outlined in my readings and tutorials. I am now working on creating a
new import feature for my application. The user will upload a PDF which
will call a script that converts it to a text file.
I have the command line application that will do the conversion, but it
is my job to start parsing the output into meaningful data that will be
placed in my database. So after spending some time with my nose buried
in Ruby books, I feel more then ready to tackle the new challenge, the
weird thing is . . . where does this code go?
I am going to write a long ruby script that takes the text data and maps
it out using regular expressions to get the matched up with it's correct
labels . . . and I would like to have my own models around to store the
data in. but it seems like writing the whole thing in one of my
controllers or models doesn't seem like the "right" place. While the
script is running it is going to be saving data to my app's database,
and upon completion needs to return some information to my app for
further processing. Would anyone mind pointing me in the right
Thanks ahead of time!