Archive: ComponentOwl Rails app, DB backups, go redirect script
This commit is contained in:
15
app/controllers/download_controller.rb
Normal file
15
app/controllers/download_controller.rb
Normal 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
|
||||
Reference in New Issue
Block a user