C
Chris Davies
I'm still trying to get my head around REST based URIs vs slightly more
conventional cgi script with ?parameters. I think I'm probably making
heavier weather of it than I need to, but I was hoping one of you could
help me out with some understanding...
Consider a situation where I need to generate some reports from a database
(HTML, XML, whatever; it doesn't matter).
Conventionally I might have created a script called report.cgi that took
a number of parameters: { datefrom, dateto, category }, so that I could
obtain a report of, say, sales results across a date range:
report.cgi?datefrom=20090101;dateto=20090320;category=sales
How could/should I represent a URI for this kind of query using the
Rails paradigm?
Many thanks from a confused Rails learner!
Chris
conventional cgi script with ?parameters. I think I'm probably making
heavier weather of it than I need to, but I was hoping one of you could
help me out with some understanding...
Consider a situation where I need to generate some reports from a database
(HTML, XML, whatever; it doesn't matter).
Conventionally I might have created a script called report.cgi that took
a number of parameters: { datefrom, dateto, category }, so that I could
obtain a report of, say, sales results across a date range:
report.cgi?datefrom=20090101;dateto=20090320;category=sales
How could/should I represent a URI for this kind of query using the
Rails paradigm?
Many thanks from a confused Rails learner!
Chris