N
Nate Murray
Greetings. I am writing a phone call tracking app, so I have a model
'calls'. What I want to do is have some reporting about those calls,
but I'm not sure what the best practice is for something like a report
as it relates to the MVC pattern. It's not really an ActiveRecord
because it doesn't have any persistent data. Should I implement a
Report model object that is created for reporting? Or is this something
that should be implemented between helpers and views? ( That is to ask,
should I put the report logic in its own helper module? )
If I choose to go the 'report model' route. Am I wrong in assuming that
I probably shouldn't even start with rails' 'generate' scripts ( as the
report wouldnt have tradition ties to a database ) ? I would think that
something like this would best be built from the ground up.
As you can tell, Im farely new to rails. Thanks for any help!
-Nate
'calls'. What I want to do is have some reporting about those calls,
but I'm not sure what the best practice is for something like a report
as it relates to the MVC pattern. It's not really an ActiveRecord
because it doesn't have any persistent data. Should I implement a
Report model object that is created for reporting? Or is this something
that should be implemented between helpers and views? ( That is to ask,
should I put the report logic in its own helper module? )
If I choose to go the 'report model' route. Am I wrong in assuming that
I probably shouldn't even start with rails' 'generate' scripts ( as the
report wouldnt have tradition ties to a database ) ? I would think that
something like this would best be built from the ground up.
As you can tell, Im farely new to rails. Thanks for any help!
-Nate