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