Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 13
- Log:
Initial import of Typo 2.6.0 sources from a downloaded Tarball.
Typo is a Ruby On Rails based blog engine.
- Author:
- adh
- Date:
- Sat Jul 22 22:25:02 +0100 2006
- Size:
- 853 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 | @user.password = @user.password_confirmation = '' |
32 | end |
33 | |
34 | def destroy |
35 | @user = User.find(params[:id]) |
36 | if request.post? |
37 | @user.destroy |
38 | redirect_to :action => 'list' |
39 | end |
40 | end |
41 | |
42 | end |