Archive: ComponentOwl Rails app, DB backups, go redirect script
This commit is contained in:
21
app/controllers/landing_pages_controller.rb
Normal file
21
app/controllers/landing_pages_controller.rb
Normal file
@@ -0,0 +1,21 @@
|
||||
class LandingPagesController < ApplicationController
|
||||
|
||||
before_filter :init_product
|
||||
|
||||
layout "simple"
|
||||
|
||||
caches_page :show
|
||||
|
||||
def show
|
||||
@support_request = SupportRequest.new
|
||||
@support_request.support_request_origin = SupportRequestOrigin['landing-page']
|
||||
@support_request.product = @product
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def init_product
|
||||
@product = Product.find_by_code(params[:id])
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user