Changesets can be listed by changeset number.
The Git repository is here.
Changeset 175
Added signature for RForum e-mail messages to comply with
directives on company information in such communications.
Changes in boot and routes code to try and get things
running under Rails 1.2, which apply equally to making the
forum a bit more up to date in 1.1.6. Not tested in 1.1.6;
didn't solve the 1.2 problem, but didn't change the nature
of the fault either.
Other changes were made to try and fix the 1.2 problem but
these are the only things that were kept (everything else
was done on a "give it a try and revert on failure" basis)
- after this, I decided to move over to Beast.
- Comitted by: rool
- Date: Friday March 02 16:17:02 2007 (over 17 years ago)
Affected files:
- rool/rails/rforum/trunk/app/views/mailer/en/_signature.rhtml
- rool/rails/rforum/trunk/config/boot.rb (diff)
- rool/rails/rforum/trunk/config/routes.rb (diff)
rool/rails/rforum/trunk/config/boot.rb:
prev. | current | |
1 | # Don't change this file. Configuration is done in config/environment.rb and config/environments/*.rb | |
2 | ||
unless defined?(RAILS_ROOT) | ||
root_path = File.join(File.dirname(__FILE__), '..') | ||
5 | ||
unless RUBY_PLATFORM =~ /mswin32/ | ||
require 'pathname' | ||
5 | | |
8 | root_path = Pathname.new(root_path).cleanpath(true).to_s | |
end | ||
10 | ||
RAILS_ROOT = root_path | ||
end | ||
10 | ||
11 | | |
12 | ||
13 | | |
14 | | |
15 | ||
14 | unless defined?(Rails::Initializer) | |
15 | if File.directory?("#{RAILS_ROOT}/vendor/rails") | |
16 | require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer" | |
17 | else | |
18 | require 'rubygems' | |
17 | ||
21 | environment_without_comments = IO.readlines(File.dirname(__FILE__) + '/environment.rb').reject { |l| l =~ /^#/ }.join | |
22 | environment_without_comments =~ /[^#]RAILS_GEM_VERSION = '([\d.]+)'/ | |
23 | rails_gem_version = $1 | |
24 | ||
25 | if version = defined?(RAILS_GEM_VERSION) ? RAILS_GEM_VERSION : rails_gem_version | |
26 | rails_gem = Gem.cache.search('rails', "=#{version}").first | |
27 | ||
28 | if rails_gem | |
29 | require_gem "rails", "=#{version}" | |
30 | require rails_gem.full_gem_path + '/lib/initializer' | |
31 | else | |
32 | STDERR.puts %(Cannot find gem for Rails =#{version}: | |
33 | Install the missing gem with 'gem install -v=#{version} rails', or | |
34 | change environment.rb to define RAILS_GEM_VERSION with your desired version. | |
35 | ) | |
36 | exit 1 | |
37 | end | |
38 | else | |
39 | require_gem "rails" | |
40 | require 'initializer' | |
41 | end | |
42 | end | |
43 | ||
44 | Rails::Initializer.run(:set_load_path) | |
45 | end | |
rool/rails/rforum/trunk/config/routes.rb:
prev. | current | |
ActionController::Routing::Routes.draw do |map| | ||
map.connect PATH_PREFIX + '/', :controller => 'forum', :action => 'list' | ||
map.connect PATH_PREFIX + '/topic/:id', :controller => 'topic', :action => 'show', | ||
4 | | |
4 | :requirements => {:id => /[0-9]+/} | |
map.connect PATH_PREFIX + '/forum/:id', :controller => 'forum', :action => 'forum', | ||
6 | | |
6 | :requirements => {:id => /[0-9]+/} | |
map.connect PATH_PREFIX + '/search', :controller => 'forum', :action => 'search' | ||
map.connect PATH_PREFIX + '/attachment/:id/:filename', :controller => 'attachment', | ||
9 | | |
9 | :action => 'fetch', :requirements => {:id => /[0-9]+/} | |
map.connect PATH_PREFIX + '/:controller/:action/:id' | ||
map.connect PATH_PREFIX + '/:controller/:action' | ||
end |