class PadController < ApplicationController caches_page :show def show # blba vyjimka params[:id] = "mp3-speed-accelerator" if params[:id] == "mp3speedaccelerator" @product = Product.find_by_file(params[:id]) if @product respond_to do |format| format.xml end else render :nothing => true, :status => 404 end end end