On Apr 25, 5:58 pm, Sav <[email protected]> wrote:
> 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.
Fred
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---