Module: SolarSearch::Routing::MapperExtensions

Defined in:
lib/solarsearch/rails/routing.rb

Instance Method Summary collapse

Instance Method Details

#solarsearch_routesObject



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/solarsearch/rails/routing.rb', line 4

def solarsearch_routes
  @set.draw do |map|
    map.myevents 'myevents', :controller => 'article_statuses', :action => 'index'

    map.tester 'tester', :controller => 'infosources', :action => 'tester'
    map.mynews 'mynews', :controller => 'search_keywords', :action => 'newsupdate'
    map.postnews 'postnews', :controller => 'search_keywords', :action => 'postnews'
    map.agent 'agent', :controller => 'search_keywords', :action => 'index'
    map.resources :search_keywords

    map.resources :infosources

    map.register 'register', :controller => 'users', :action => 'new'
    map.resources :users
    map.show_user 'users/:user_id', :controller => 'users', :action => 'edit'
    map.agent_for_user 'users/:user_id/agent', :controller => 'search_keywords', :action => 'index'

    map.logged_exceptions "logged_exceptions/:action/:id", :controller => "restricted_logged_exceptions"
    map. 'login', :controller => 'user_sessions', :action => 'new'
    map.logout 'logout', :controller => 'user_sessions', :action => 'destroy'
    map.resources :user_sessions
  end
end