コントローラーから応答オブジェクトを操作したいのですが、次のような応答を取得できることがわかっています。
class HomeController < ApplicationController
after_filter :generate_html
def index
end
def generate_html
raise response.body # this will show response body content
end
end
では、どうすればコントローラーを初期化してその応答オブジェクトを取得できますか?Railsアプリケーションでstatic_page_generatorを書きたいからです。