Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 193
- Log:
First stage commit of Typo 4.1, modified for the ROOL site.
Includes all local modifications but a final pass needs to be
made to delete any files left over from earlier Typo versions
that shouldn't be here anymore. See the 'tags' section of the
repository for a clean Typo 4.1 tree.Note that symlinks to shared files in the RISC OS Open theme
directory have been deliberately included this time around; I
decided that on balance it was better to leave them in as
placeholders, since unlike symlinks in app/views/shared, the
Typo theme structure is not a standard Rails concept.
- Author:
- rool
- Date:
- Wed Apr 04 18:51:02 +0100 2007
- Size:
- 536 Bytes
1 | class RedirectController < ContentController |
2 | session :off |
3 | |
4 | def redirect |
5 | r = Redirect.find_by_from_path(params[:from]) |
6 | |
7 | if(r) |
8 | # From http://pinds.com/articles/2005/11/06/rails-how-to-do-a-301-redirect, thanks |
9 | headers["Status"] = "301 Moved Permanently" |
10 | path = r.to_path |
11 | url_root = request.relative_url_root |
12 | path = url_root + path unless url_root.nil? or path[0,url_root.length] == url_root |
13 | redirect_to path |
14 | else |
15 | render :text => "Page not found", :status => 404 |
16 | end |
17 | end |
18 | end |