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