Class: PreviewController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- PreviewController
- Defined in:
- app/controllers/preview_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'app/controllers/preview_controller.rb', line 5 def show Page.transaction do # Extra safe don't save anything voodoo PagePart.transaction do def request.request_method; :get; end construct_page.process(request,response) @performed_render = true raise "Don't you dare save any changes" end end rescue => exception render :text => exception. unless @performed_render end |