-
Notifications
You must be signed in to change notification settings - Fork 17
/
routes.rb
executable file
·45 lines (36 loc) · 1.06 KB
/
routes.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# default
connect '',
:controller => 'content_nodes',
:action => 'show_by_name',
:name => 'home'
connect '/',
:controller => 'content_nodes',
:action => 'show_by_name',
:name => 'home'
# Default administration mapping
connect 'admin',
:controller => 'admin/orders',
:action => 'index'
connect '/blog',
:controller => 'content_nodes',
:action => 'index'
connect '/blog/section/:section_name',
:controller => 'content_nodes',
:action => 'list_by_section'
# Static route blog content through our content_node controller
connect '/blog/:name',
:controller => 'content_nodes',
:action => 'show_by_name'
connect '/contact',
:controller => 'questions',
:action => 'ask'
connect '/store/show_by_tags/*tags',
:controller => 'store',
:action => 'show_by_tags'
# Install the default route as the lowest priority.
connect ':controller/:action/:id.:format'
connect ':controller/:action/:id'
# For things like /about_us, etc
connect ':name',
:controller => 'content_nodes',
:action => 'show_by_name'