Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 15
- Log:
Attempt to update Typo to a Typo SVN HEAD release from around the
time the prototype installation was set up on the RISC OS Open Limited
web site. Timestamps place this at 04-Jul so a revision from 05-Jul or
earlier was pulled and copied over the 2.6.0 tarball stable code.
- Author:
- adh
- Date:
- Sat Jul 22 23:27:35 +0100 2006
- Size:
- 800 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]) |
14 | end |
15 | |
16 | def new |
17 | @user = User.new(params[:user]) |
18 | if request.post? and @user.save |
19 | flash[:notice] = 'User was successfully created.' |
20 | redirect_to :action => 'list' |
21 | end |
22 | end |
23 | |
24 | def edit |
25 | @user = User.find(params[:id]) |
26 | @user.attributes = params[:user] |
27 | if request.post? and @user.save |
28 | flash[:notice] = 'User was successfully updated.' |
29 | redirect_to :action => 'show', :id => @user.id |
30 | end |
31 | end |
32 | |
33 | def destroy |
34 | @user = User.find(params[:id]) |
35 | if request.post? |
36 | @user.destroy if User.count > 1 |
37 | redirect_to :action => 'list' |
38 | end |
39 | end |
40 | |
41 | end |