Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 16
- Log:
Configured for temporary /rails/typo location on Alpha. Updated
several layouts for RISC OS Open Limited site style. Now produces
proper "Not found" page in redirect_controller.rb. Updates to
database schema from Typo SVN (small change in the way tables are
defined, but same tables end up being defined). Set location of
SendMail in vendor/rails/actionmailer/lib/action_mailer/base.rb.
- Author:
- adh
- Date:
- Sun Jul 23 10:51:56 +0100 2006
- Size:
- 4455 Bytes
1 | ActionController::Routing::Routes.draw do |map| |
2 | |
3 | # default |
4 | map.index '/rails/typo/', :controller => 'articles', :action => 'index' |
5 | map.admin '/rails/typo/admin', :controller => 'admin/general', :action => 'index' |
6 | |
7 | # admin/comments controller needs parent article id |
8 | map.connect '/rails/typo/admin/comments/article/:article_id/:action/:id', |
9 | :controller => 'admin/comments', :action => nil, :id => nil |
10 | map.connect '/rails/typo/admin/trackbacks/article/:article_id/:action/:id', |
11 | :controller => 'admin/trackbacks', :action => nil, :id => nil |
12 | map.connect '/rails/typo/admin/content/:action/:id', :controller => 'admin/content' |
13 | |
14 | # make rss feed urls pretty and let them end in .xml |
15 | # this improves caches_page because now apache and webrick will send out the |
16 | # cached feeds with the correct xml mime type. |
17 | map.xml '/rails/typo/xml/itunes/feed.xml', :controller => 'xml', :action => 'itunes' |
18 | map.xml '/rails/typo/xml/articlerss/:id/feed.xml', :controller => 'xml', :action => 'articlerss' |
19 | map.xml '/rails/typo/xml/commentrss/feed.xml', :controller => 'xml', :action => 'commentrss' |
20 | map.xml '/rails/typo/xml/trackbackrss/feed.xml', :controller => 'xml', :action => 'trackbackrss' |
21 | |
22 | map.xml '/rails/typo/xml/:format/feed.xml', :controller => 'xml', :action => 'feed', :type => 'feed' |
23 | map.xml '/rails/typo/xml/:format/:type/feed.xml', :controller => 'xml', :action => 'feed' |
24 | map.xml '/rails/typo/xml/:format/:type/:id/feed.xml', :controller => 'xml', :action => 'feed' |
25 | map.xml '/rails/typo/xml/rss', :controller => 'xml', :action => 'feed', :type => 'feed', :format => 'rss' |
26 | |
27 | # allow neat perma urls |
28 | map.connect '/rails/typo/articles', |
29 | :controller => 'articles', :action => 'index' |
30 | map.connect '/rails/typo/articles/page/:page', |
31 | :controller => 'articles', :action => 'index', |
32 | :page => /\d+/ |
33 | |
34 | map.connect '/rails/typo/articles/:year/:month/:day', |
35 | :controller => 'articles', :action => 'find_by_date', |
36 | :year => /\d{4}/, :month => /\d{1,2}/, :day => /\d{1,2}/ |
37 | map.connect '/rails/typo/articles/:year/:month', |
38 | :controller => 'articles', :action => 'find_by_date', |
39 | :year => /\d{4}/, :month => /\d{1,2}/ |
40 | map.connect '/rails/typo/articles/:year', |
41 | :controller => 'articles', :action => 'find_by_date', |
42 | :year => /\d{4}/ |
43 | |
44 | map.connect '/rails/typo/articles/:year/:month/:day/page/:page', |
45 | :controller => 'articles', :action => 'find_by_date', |
46 | :year => /\d{4}/, :month => /\d{1,2}/, :day => /\d{1,2}/, :page => /\d+/ |
47 | map.connect '/rails/typo/articles/:year/:month/page/:page', |
48 | :controller => 'articles', :action => 'find_by_date', |
49 | :year => /\d{4}/, :month => /\d{1,2}/, :page => /\d+/ |
50 | map.connect '/rails/typo/articles/:year/page/:page', |
51 | :controller => 'articles', :action => 'find_by_date', |
52 | :year => /\d{4}/, :page => /\d+/ |
53 | |
54 | map.connect '/rails/typo/articles/:year/:month/:day/:title', |
55 | :controller => 'articles', :action => 'permalink', |
56 | :year => /\d{4}/, :day => /\d{1,2}/, :month => /\d{1,2}/ |
57 | |
58 | map.connect '/rails/typo/articles/category/:id', |
59 | :controller => 'articles', :action => 'category' |
60 | map.connect '/rails/typo/articles/category/:id/page/:page', |
61 | :controller => 'articles', :action => 'category', |
62 | :page => /\d+/ |
63 | |
64 | map.connect '/rails/typo/articles/tag/:id', |
65 | :controller => 'articles', :action => 'tag' |
66 | map.connect '/rails/typo/articles/tag/:id/page/:page', |
67 | :controller => 'articles', :action => 'tag', |
68 | :page => /\d+/ |
69 | |
70 | map.connect '/rails/typo/pages/*name',:controller => 'articles', :action => 'view_page' |
71 | |
72 | map.connect '/rails/typo/stylesheets/theme/:filename', |
73 | :controller => 'theme', :action => 'stylesheets' |
74 | map.connect '/rails/typo/javascript/theme/:filename', |
75 | :controller => 'theme', :action => 'javascript' |
76 | map.connect '/rails/typo/images/theme/:filename', |
77 | :controller => 'theme', :action => 'images' |
78 | |
79 | map.connect '/rails/typo/plugins/filters/:filter/:public_action', |
80 | :controller => 'textfilter', :action => 'public_action' |
81 | |
82 | # Kill attempts to connect directly to the theme controller. |
83 | # Ideally we'd disable these by removing the default route (below), |
84 | # but that breaks too many things for Typo 2.5. |
85 | map.connect '/rails/typo/theme/*stuff', |
86 | :controller => 'theme', :action => 'error' |
87 | |
88 | # Allow legacy urls to still work |
89 | map.connect '/rails/typo/:controller/:action/:id' |
90 | |
91 | map.connect '/rails/typo/*from', :controller => 'redirect', :action => 'redirect' |
92 | end |