My favorites
▼
|
Sign in
substruct
Open-source Ruby on Rails E-Commerce
Project Home
Downloads
Wiki
Issues
Source
READ-ONLY: This project has been
archived
. For more information see
this post
.
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
127
attachment: routes_fix_to_allow_overriding.diff
(2.0 KB)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
Index: substruct/config/routes.rb
===================================================================
--- substruct/config/routes.rb (revision 142)
+++ substruct/config/routes.rb (working copy)
@@ -1,51 +1,51 @@
-ActionController::Routing::Routes.draw do |map|
+# ActionController::Routing::Routes.draw do |map|
# default
- map.connect '',
+ connect '',
:controller => 'content_nodes',
:action => 'show_by_name',
:name => 'home'
- map.connect '/',
+ connect '/',
:controller => 'content_nodes',
:action => 'show_by_name',
:name => 'home'
# Default administration mapping
- map.connect 'admin',
+ connect 'admin',
:controller => 'admin/orders',
:action => 'index'
- map.connect '/blog',
+ connect '/blog',
:controller => 'content_nodes',
:action => 'index'
- map.connect '/blog/section/:section_name',
+ connect '/blog/section/:section_name',
:controller => 'content_nodes',
:action => 'list_by_section'
# Static route blog content through our content_node controller
- map.connect '/blog/:name',
+ connect '/blog/:name',
:controller => 'content_nodes',
:action => 'show_by_name'
- map.connect '/contact',
+ connect '/contact',
:controller => 'questions',
:action => 'ask'
- map.connect '/store/show_by_tags/*tags',
+ connect '/store/show_by_tags/*tags',
:controller => 'store',
:action => 'show_by_tags'
# Allow downloading Web Service WSDL as a file with an extension
# instead of a file named 'wsdl'
- map.connect ':controller/service.wsdl', :action => 'wsdl'
+ connect ':controller/service.wsdl', :action => 'wsdl'
# Install the default route as the lowest priority.
- map.connect ':controller/:action/:id.:format'
- map.connect ':controller/:action/:id'
+ connect ':controller/:action/:id.:format'
+ connect ':controller/:action/:id'
# For things like /about_us, etc
- map.connect ':name',
+ connect ':name',
:controller => 'content_nodes',
:action => 'show_by_name'
-end
+# end
Powered by
Google Project Hosting