Changeset 1314

Show
Ignore:
Timestamp:
08/06/08 17:45:35 (5 months ago)
Author:
alban
Message:

Premiere version du support des sitemaps. Refs #5

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/app/controllers/public_controller.rb

    r1303 r1314  
    5858  end 
    5959 
     60  def robots 
     61    render :text => "Sitemap: #{url_for :controller => :sitemaps, :action => :show, :id => @show.slug, :only_path => false}" 
     62  end 
     63 
    6064  private 
    6165 
  • trunk/config/routes.rb

    r1219 r1314  
    1313  map.connect 'ep/:episode_slug/ecouter/:content_slug', :controller => 'public', :action => 'playlist' 
    1414  map.connect 'feed', :controller => 'public', :action => 'feed' 
     15  map.connect 'robots.txt', :controller => 'public', :action => 'robots' 
    1516 
    1617  # You can have the root of your site routed by hooking up ''