Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 171
- Log:
Initial import of Beast 0.9 from downloaded Tarball. Beast is a Ruby
On Rails based forum application. The original tarball came from the
following location:http://s3.amazonaws.com/beast-forum/beast-0.9.tar.gz
The forum post which announced this version's availability was at:
http://beast.caboo.se/forums/1/topics/446
- Author:
- rool
- Date:
- Fri Mar 02 15:51:55 +0000 2007
- Size:
- 1038 Bytes
1 | class ForumsController < ApplicationController |
2 | before_filter :login_required, :only => [:new, :create, :edit, :update, :destroy] |
3 | before_filter :find_forum, :except => [:index, :new, :create] |
4 | def index |
5 | @forums = Forum.find(:all, :order => "position") |
6 | end |
7 | |
8 | def show |
9 | # keep track of when we last viewed this forum for activity indicators |
10 | (session[:forums] ||= {})[@forum.id] = Time.now.utc if logged_in? |
11 | @topic_pages, @topics = paginate(:topics, :per_page => 25, :conditions => ['forum_id = ?', params[:id]], :include => :replied_by_user, :order => 'sticky desc, replied_at desc') |
12 | end |
13 | |
14 | def new |
15 | @forum = Forum.new |
16 | end |
17 | |
18 | def create |
19 | @forum = Forum.new(params[:forum]) |
20 | @forum.save! |
21 | redirect_to forums_path |
22 | end |
23 | |
24 | def update |
25 | @forum.attributes = params[:forum] |
26 | @forum.save! |
27 | redirect_to forums_path |
28 | end |
29 | |
30 | def destroy |
31 | @forum.destroy |
32 | redirect_to forums_path |
33 | end |
34 | |
35 | protected |
36 | def find_forum() @forum = Forum.find(params[:id]) end |
37 | alias authorized? admin? |
38 | end |