http://api.rubyonrails.org/classes/ActionController/Caching/Pages.html#M000110
There's also good coverage of caching in the agile rails book. Plus
google will probably give you a lot of help too.
b
Actually, you could be doing it without using caching.......
class LaboratoryNotebookController < ApplicationController
def index
render :action => 'index.rxml'
fp = File.open RAILS_ROOT+"/myfile.xml", 'w+'
fp.write @response.body
fp.close
end
end
remember that XHTML is actually XML too, therefore, the rxml extension
or the rhtml extension is not really important.....
xhr :post, :create_xml, :order => @order
But rails doesn't know the "xhr". Do I need to include
"ActionController::TestProcess", and what is the syntax?
undefined method `xhr' for #<BestellContrController:0x4660374>
RAILS_ROOT: ./script/../config/..
Application Trace | Framework Trace | Full Trace
#{RAILS_ROOT}/app/controllers/bestell_contr_controller.rb:19:in
`save_order'
Thanks for help.