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:
- 859 Bytes
1 | class Admin::UsersController < Admin::BaseController |
2 | |
3 | def index |
4 | list |
5 | render_action 'list' |
6 | end |
7 | |
8 | def list |
9 | @users = User.find :all |
10 | end |
11 | |
12 | def show |
13 | @user = User.find(params[:id], :include => [ :articles ]) |
14 | @articles = @user.articles |
15 | end |
16 | |
17 | def new |
18 | @user = User.new(params[:user]) |
19 | if request.post? and @user.save |
20 | flash[:notice] = 'User was successfully created.' |
21 | redirect_to :action => 'list' |
22 | end |
23 | end |
24 | |
25 | def edit |
26 | @user = User.find(params[:id]) |
27 | @user.attributes = params[:user] |
28 | if request.post? and @user.save |
29 | flash[:notice] = 'User was successfully updated.' |
30 | redirect_to :action => 'show', :id => @user.id |
31 | end |
32 | end |
33 | |
34 | def destroy |
35 | @user = User.find(params[:id]) |
36 | if request.post? |
37 | @user.destroy if User.count > 1 |
38 | redirect_to :action => 'list' |
39 | end |
40 | end |
41 | |
42 | end |