Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 173
- Log:
Updated to latest release of Beast according to the "getting started with
Beast" guide at:http://beast.caboo.se/forums/1/topics/381
This check-in includes frozen Edge Rails and has the beginnings of
configuration for the ROOL site included.
- Author:
- rool
- Date:
- Fri Mar 02 15:59:12 +0000 2007
- Size:
- 679 Bytes
1 | class MonitorshipsController < ApplicationController |
2 | before_filter :login_required |
3 | |
4 | def create |
5 | @monitorship = Monitorship.find_or_initialize_by_user_id_and_topic_id(current_user.id, params[:topic_id]) |
6 | @monitorship.update_attribute :active, true |
7 | respond_to do |format| |
8 | format.html { redirect_to topic_path(params[:forum_id], params[:topic_id]) } |
9 | format.js |
10 | end |
11 | end |
12 | |
13 | def destroy |
14 | Monitorship.update_all ['active = ?', false], ['user_id = ? and topic_id = ?', current_user.id, params[:topic_id]] |
15 | respond_to do |format| |
16 | format.html { redirect_to topic_path(params[:forum_id], params[:topic_id]) } |
17 | format.js |
18 | end |
19 | end |
20 | end |