Send this to a friend
1 class PostsController < ApplicationController
2 def show
3 respond_to do |format|
4 format.html
5 format.rss do
6 unless request.env['HTTP_USER_AGENT'].match(/feedburner|feedvalidator/i)
7 redirect_to 'http://feeds.feedburner.com/myfeedburner', :status=>307
8 end
9 end
10 end
11 end
12 end
class PostsController < ApplicationController
def show
respond_to do |format|
format.html
format.rss do
unless request.env['HTTP_USER_AGENT'].match(/feedburner|feedvalidator/i)
redirect_to 'http://feeds.feedburner.com/myfeedburner', :status=>307
end
end
end
end
end