Changesets can be listed by changeset number.
The Git repository is here.
Changeset 315
Explicitly specify a (slightly newer) Rails version so that the Forum
doesn't try to just run on whatever Rails gem is newest (it's not even
Rails 2 compatible, never mind Rails 3)! Related changes - remove the
PATH_PREFIX mechanism, since serving with Apache+Passenger gives
position independence without the PATH_PREFIX hack.
- Comitted by: rool
- Date: Friday March 18 14:25:36 2011 (over 13 years ago)
Affected files:
rool/rails/beast/trunk/config/environment.rb:
prev. | current | |
# you don't control web/app server and can't set it the proper way | ||
# ENV['RAILS_ENV'] ||= 'production' | ||
7 | ||
8 | ||
7 | # Rails Gem Version | |
8 | RAILS_GEM_VERSION = '1.2.6' unless defined? RAILS_GEM_VERSION | |
# Bootstrap the Rails environment, frameworks, and default configuration | ||
require File.join(File.dirname(__FILE__), 'boot') | ||
13 | ||
14 | ||
Rails::Initializer.run do |config| | ||
16 | | |
17 | | |
18 | | |
19 | | |
20 | ||
# Settings in config/environments/* take precedence those specified here | ||
# Skip frameworks you're not going to use (only works if using vendor/rails) |
rool/rails/beast/trunk/config/routes.rb:
prev. | current | |
1 | ||
2 | ||
ActionController::Routing::Routes.draw do |map| | ||
4 | | |
2 | map.home '/', :controller => 'forums', :action => 'index' | |
6 | | |
4 | map.resources :sessions | |
8 | | |
6 | map.resources :users, :member => { :admin => :post } do |user| | |
user.resources :moderators | ||
end | ||
12 | | |
10 | map.resources :forums do |forum| | |
forum.resources :topics do |topic| | ||
topic.resources :posts, :monitorships | ||
end | ||
... | ... | |
# Fake DELETE requests to the monitorships controller result in a | ||
# routing error with default Beast routes. | ||
21 | | |
19 | map.connect '/forums/:forum_id/topics/:topic_id/monitorships/destroy', :controller => 'monitorships', :action => 'destroy' | |
23 | | |
21 | map.resources :posts, :name_prefix => 'all_', :collection => { :search => :get } | |
%w(user forum).each do |attr| | ||
26 | | |
24 | map.resources :posts, :name_prefix => "#{attr}_", :path_prefix => "/#{attr.pluralize}/:#{attr}_id" | |
end | ||
29 | | |
30 | | |
31 | | |
32 | | |
33 | | |
27 | map.signup '/signup', :controller => 'users', :action => 'new' | |
28 | map.settings '/settings', :controller => 'users', :action => 'edit' | |
29 | map.activate '/activate/:key', :controller => 'users', :action => 'activate' | |
30 | map.login '/login', :controller => 'sessions', :action => 'new' | |
31 | map.logout '/logout', :controller => 'sessions', :action => 'destroy' | |
map.with_options :controller => 'posts', :action => 'monitored' do |map| | ||
35 | | |
36 | | |
33 | map.formatted_monitored_posts '/users/:user_id/monitored.:format' | |
34 | map.monitored_posts '/users/:user_id/monitored' | |
end | ||
39 | | |
37 | map.exceptions '/logged_exceptions/:action/:id', :controller => 'logged_exceptions', :action => 'index', :id => nil | |
# Old-fashioned route for backwards compatibility with RForum's | ||
# global feed location | ||
# | ||
44 | | |
42 | map.exceptions '/feed/global', :controller => 'posts', :action => 'index_rss' | |
end |