Sha256: 517100750b6563cc596605af6ddbf2517a931c095e5819436bab96390eef54ee

Contents?: true

Size: 1.49 KB

Versions: 1

Compression:

Stored size: 1.49 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"

	# This is to get clean nice rss urls, the empty id is necessary... it seems
	map.connect 'index.rss', :controller => 'elt', :action => 'rss', :id => ''
	map.connect 'vote.rss', :controller => 'elt', :action => 'vote_rss', :id => ''

	map.connect ':id/index.rss', :controller => 'elt', :action => 'rss'
	map.connect ':id/vote.rss', :controller => 'elt', :action => 'vote_rss'

	map.connect ':id', :controller => 'elt', :action => 'rss', :requirements => { :id => /.*\.rss/ }
	map.connect ':id', :controller => 'elt'

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
parlement-0.17 config/routes.rb