change link for rss

This commit is contained in:
Matthew K. Fu JuYuan 2012-09-18 12:04:45 +08:00
parent 0ecb4eca46
commit ce47109d33
2 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@ xml.rss :version => "2.0" do
xml.description @bulletin.text xml.description @bulletin.text
xml.pubDate @bulletin.postdate.to_s(:rfc822) xml.pubDate @bulletin.postdate.to_s(:rfc822)
xml.link url_for(:action=>"show", :controller=>"panel/announcement/front_end/bulletins", :id=>@bulletin ,:format=> :rss,:only_path=>false,:inner=>true) xml.link url_for(:action=>"show", :controller=>"panel/announcement/front_end/bulletins", :id=>@bulletin ,:format=> :rss,:only_path=>false,:inner=>true)
xml.guid url_for(:action=>"show", :controller=>"panel/announcement/front_end/bulletins", :id=>@bulletin ,:format=> :rss,:only_path=>false,:inner=>true) xml.guid url_for(:action=>"show", :controller=>"panel/announcement/front_end/bulletins", :id=>@bulletin ,:only_path=>false)
end end
# end # end
end end

View File

@ -13,8 +13,8 @@ xml.rss :version => "2.0" do
xml.title @news_bulletin.title xml.title @news_bulletin.title
xml.description @news_bulletin.text xml.description @news_bulletin.text
xml.pubDate @news_bulletin.postdate.to_s(:rfc822) xml.pubDate @news_bulletin.postdate.to_s(:rfc822)
xml.link url_for(:action=>"show", :controller=>"panel/news/front_end/news_bulletins", :id=>news_bulletin ,:format=> :rss,:only_path=>false,:inner=>true) xml.link url_for(:action=>"show", :controller=>"panel/news/front_end/news_bulletins", :id=>@news_bulletin ,:format=> :rss,:only_path=>false,:inner=>true)
xml.guid url_for(:action=>"show", :controller=>"panel/news/front_end/news_bulletins", :id=>news_bulletin ,:format=> :rss,:only_path=>false,:inner=>true) xml.guid url_for(:action=>"show", :controller=>"panel/news/front_end/news_bulletins", :id=>@news_bulletin ,:only_path=>false)
end end
# end # end
end end