Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 12
- Log:
Configured for temporary /rails/rforum location on Alpha. Updated
several layouts to suit RISC OS Open Limited site style in addition
to producing a theme stylesheet. View changes included a few fixes
to invalid HTML 'class' attribute values (they contained spaces).
Some examples may remain. Note temporary hacks to force in
"/rails/rforum" prefix to some URLs where they are either hard coded
or the user helpers but for currently unknown reasons the helpers are
giving an incorrect result.Extended menu item renderer to allow a separator string to be
supplied; needed to allow horizontal navigation regions as well as
sidebar-based vertical navigation regions ("|" vs "</li><li>").Fix in models.rb to allow attempts to unsubscribe from a topic from
which the user has already subscribed - e.g. clicking on the relevant
link in a notification e-mail message twice. Previously, an application
error would be raised.Extended permissions system to include whether or not a user can post
(can_post?()) or reply (can_reply?()) to a message. Normal and admin
users always can. Guests follow new options token "guests_cannot_post"
(note that this is not the same as "anon_posting_allowed" which asks
that guests supply at least their name rather than be anonymous - of
course that's pretty useless as a guest can put in any name they want,
real or otherwise). The navbar and post_menu controllers know about
the new options and won't generate links for prohibited actions. Topic
controller enforces permissions in case someone builds links by hand.Changed user_controller.rb to add flash[:attention] tokens when a user
logs in or out. Fixed broken hard-coded URL generation to use url_for
helper method instead. Used the flash[:attention] mechanism to produce
the notification about an e-mail message sent for a forgotten password
rather than writing just that text into a blank page - redirects back
to the forum controller, list action.This revision is believed to be the functional equivalent of revision
906 of RForum merged with changes made to an unknown prior revision of
RForum along with acts_as_authenticated modification plus the above
set of fixes and documentation. At the time of writing this specific
combination has not been tested live on the RISC OS Open Limited
prototype site.
- Author:
- adh
- Date:
- Sat Jul 22 21:15:03 +0100 2006
- Size:
- 2480 Bytes
1 | # Be sure to restart your webserver when you modify this file. |
2 | |
3 | # Uncomment below to force Rails into production mode |
4 | # (Use only when you can't set environment variables through your web/app server) |
5 | # ENV['RAILS_ENV'] = 'production' |
6 | |
7 | # Bootstrap the Rails environment, frameworks, and default configuration |
8 | require File.join(File.dirname(__FILE__), 'boot') |
9 | |
10 | Rails::Initializer.run do |config| |
11 | # We don't run in the document root, so images etc. must come from |
12 | # a non-root location too. Hijack the 'asset host' facility to get |
13 | # helper-based links pointing in the right place. |
14 | config.action_controller.asset_host = "/rails/rforum" |
15 | |
16 | # Skip frameworks you're not going to use |
17 | config.frameworks -= [ :action_web_service ] |
18 | |
19 | # Add additional load paths for your own custom dirs |
20 | # config.load_paths += %W( #{RAILS_ROOT}/app/services ) |
21 | |
22 | # Force all environments to use the same logger level |
23 | # (by default production uses :info, the others :debug) |
24 | config.log_level = :warn |
25 | |
26 | # Use the database for sessions instead of the file system |
27 | # (create the session table with 'rake create_sessions_table') |
28 | config.action_controller.session_store = :active_record_store |
29 | |
30 | # Enable page/fragment caching by setting a file-based store |
31 | # (remember to create the caching directory and make it readable to the application) |
32 | # config.action_controller.fragment_cache_store = :file_store, "#{RAILS_ROOT}/cache" |
33 | |
34 | # Activate observers that should always be running |
35 | # config.active_record.observers = :cacher, :garbage_collector |
36 | |
37 | # Make Active Record use UTC-base instead of local time |
38 | # config.active_record.default_timezone = :utc |
39 | |
40 | # Use Active Record's schema dumper instead of SQL when creating the test database |
41 | # (enables use of different database adapters for development and test environments) |
42 | config.active_record.schema_format = :ruby |
43 | |
44 | # See Rails::Configuration for more options |
45 | end |
46 | |
47 | # Add new inflection rules using the following format |
48 | # (all these examples are active by default): |
49 | # Inflector.inflections do |inflect| |
50 | # inflect.plural /^(ox)$/i, '\1en' |
51 | # inflect.singular /^(ox)en/i, '\1' |
52 | # inflect.irregular 'person', 'people' |
53 | # inflect.uncountable %w( fish sheep ) |
54 | # end |
55 | |
56 | # Include your application configuration below |
57 | |
58 | # Allow multiple Rails applications by giving the session cookie a |
59 | # unique prefix. |
60 | |
61 | ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS[:session_key] = 'rforumapp_session_id' |
62 | |
63 | require RAILS_ROOT + '/config/app.rb' |