Archive: ComponentOwl Rails app, DB backups, go redirect script
This commit is contained in:
15
app/controllers/upgrade_controller.rb
Normal file
15
app/controllers/upgrade_controller.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
class UpgradeController < ApplicationController
|
||||
|
||||
caches_page :index
|
||||
|
||||
def index
|
||||
@product = featured_product
|
||||
@static_page = StaticPage.find_by_url_param(params[:upgrade])
|
||||
|
||||
@survey = Survey.new
|
||||
@survey.product = @product
|
||||
|
||||
render_404 unless @static_page
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user