ActionController::Routing::Routes.draw do |map|
  # specifications
  map.resources :specifications, :has_many=>[:photos]
 
  # welcome
  map.root :controller => "welcome"
  # actions
  map.search 'search', :controller => 'welcome', :action => 'search'
  map.browse 'browse', :controller => 'welcome', :action => 'browse'
  map.advanced 'advanced', :controller => 'welcome', :action => 'search'

  # AJAX
  map.models 'models', :controller => 'welcome', :action => 'models'
  map.auto_complete 'auto_complete', :controller => 'welcome', :action => 'auto_complete'
  # Static
  map.about 'about', :controller => 'welcome', :action => 'about'
  map.advertising 'advertising', :controller => 'welcome', :action => 'advertising'


  # developers
  map.developers 'developers', :controller => 'developers', :action => 'index'
  map.documentation 'developers/documentation', :controller => 'developers', :action => 'documentation'
  map.libraries 'developers/libraries', :controller => 'developers', :action => 'libraries'
  map.examples 'developers/examples', :controller => 'developers', :action => 'examples'

end
