Is it possible to save a view’s output into a static file rather than
dynamically generate it each request?..
I’ve got a working controller method and view to select my db records
and format them into a custom XML output, but I’d like to save the
view output into “/public/data/{params[:id]}.xml”
Is it possible to save a view’s output into a static file rather than
dynamically generate it each request?..
I’ve got a working controller method and view to select my db records
and format them into a custom XML output, but I’d like to save the
view output into “/public/data/{params[:id]}.xml”
Sounds to me like you should read up on action controller’s caching
support.