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