Archive: ComponentOwl Rails app, DB backups, go redirect script

This commit is contained in:
EC2 Default User
2026-03-23 16:20:05 +00:00
commit 50037f386f
218 changed files with 14558 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
class DownloadController < ApplicationController
before_filter(:only => [:show]){ |c| c.find_product("download_url", UrlDestination['product-download']) }
before_filter :init_objects, :only => [:show]
private
def init_objects
@download_url = direct_download_url(:filename => @product.file_url)
@testimonial = @product.testimonial_by_location('download')
@meta_title = I18n.t('txt.download_page.meta_title', :product => @product.name.strip_version, :version => @product.current_version)
@meta_description = I18n.t('txt.download_page.meta_description', :product => @product.name.strip_version)
@meta_keywords = I18n.t('txt.download_page.meta_keywords', :product => @product.name.strip_version)
end
end