Sha256: 93bc047c555cbebd0ce0e22b19f31fc6e15c51c5009f30e15186932ee29e5579

Contents?: true

Size: 1.31 KB

Versions: 1

Compression:

Stored size: 1.31 KB

Contents

ActionController::Routing::Routes.draw do |map|
  # Add your own custom routes here.
  # The priority is based upon order of creation: first created -> highest priority.
  
  # Here's a sample route:
  # map.connect 'products/:id', :controller => 'catalog', :action => 'view'
  # Keep in mind you can assign values other than :controller and :action

  # You can have the root of your site routed by hooking up '' 
  # -- just remember to delete public/index.html.
  # map.connect '', :controller => "welcome"

	map.connect '', :controller => 'elt', :action => 'show', :id => 'parlement'
	map.connect 'index.rss', :controller => 'elt', :action => 'rss', :id => 'parlement'
	map.connect ':id', :controller => 'elt', :action => 'show', :id => 'parlement'
	map.connect ':id/index.rss', :controller => 'elt', :action => 'rss'

	map.connect 'perso/:id', :controller => 'elt'
	map.connect 'perso/:id/index.rss', :controller => 'elt', :action => 'rss'
	map.connect 'perso/blog/:id', :controller => 'elt'
	map.connect 'perso/blog/:id/index.rss', :controller => 'elt', :action => 'rss'

  # Allow downloading Web Service WSDL as a file with an extension
  # instead of a file named 'wsdl'
  #map.connect ':controller/service.wsdl', :action => 'wsdl'

  # Install the default route as the lowest priority.
  map.connect ':controller/:action/:id'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
parlement-0.2 config/routes.rb