daily pastebin goal
85%
SHARE
TWEET

Untitled

a guest Mar 13th, 2018 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. require "controllers/application_controller"
  2. require "presenters/sales_pitch_presenter"
  3.  
  4. module BuildVault
  5.   class SalesPitchController < BuildVault::ApplicationController
  6.     self.presenter = BuildVault::SalesPitchPresenter.new
  7.    
  8.     before do
  9.       response.layout "html/layouts/default"
  10.     end
  11.    
  12.     action :GET do
  13.       page = request.variables["page"]
  14.       page = "index" if page.blank?
  15.       response.xhtml
  16.       response.render "html/sales_pitch/#{page}"
  17.       response.cache = true
  18.     end
  19.   end
  20. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top