Sanskrit::Application.routes.draw do
	# The priority is based upon order of creation: first created -> highest priority.
	# See how all your routes lay out with "rake routes".

	root :to => redirect('/search')

	get '/search', :to => 'search#index'

	get '/dictionary', :to => redirect('/dictionaries')
	get '/dictionaries', :to => 'dictionaries#index'
	resources :dictionary, :controller => 'dictionaries', :only => [:index, :show] do
		# FIXME: /dictionary/X/scans
		resources :scan, :controller => 'scans', :only => [:index, :show]
	end
end

Sanskrit::Application.routes.draw do
	# The priority is based upon order of creation: first created -> highest priority.
	# See how all your routes lay out with "rake routes".

	root :to => redirect('/search')

	get '/search', :to => 'search#index'

	get '/dictionary', :to => redirect('/dictionaries')
	get '/dictionaries', :to => 'dictionaries#index'
	resources :dictionary, :controller => 'dictionaries', :only => [:index, :show] do
		get '/scans', :to => 'scans#index'
		resources :scan, :controller => 'scans', :only => [:index, :show]
	end
end

Allow links to the list of scans of a dictionary
Allow links to the list of scans of a dictionary
