Files
componentowl-rails-archive/app/controllers/pad_controller.rb

18 lines
378 B
Ruby
Raw Normal View History

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