I am working with a Rails application that uses RESTful routes for handling it's resources. I am now creating a reports controller that will generate reports in HTML, XML, CSV, etc. There will be several different reports available for generation, depending on the parameters sent to the controller.
Is it overkill to use REST for this reports controller as it's not an actual resource that will be saved and then available for editing or deletion? Using RESTful would create a lot of routes that I will never need to use.
Would it be a better practice to define a custom route instead of going RESTful? Such as having a single generate
action in the controller that generates the report and outputs it in the specified format?
map.connect 'reports', :controller => 'reports', :action => 'generate'