Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 390
- Log:
Initial import of Canvass, a donations-based poll application.
- Author:
- rool
- Date:
- Mon Mar 21 14:58:04 +0000 2011
- Size:
- 1186 Bytes
1 | ######################################################################## |
2 | # File:: help_controller.rb |
3 | # (C):: Hipposoft 2010, 2011 |
4 | # |
5 | # Purpose:: Display help pages. |
6 | # ---------------------------------------------------------------------- |
7 | # 15-Jan-2010 (ADH): Created by consolidating an increasing |
8 | # number of duplicated help controllers. |
9 | # 18-Feb-2011 (ADH): Imported from Artisan. |
10 | ######################################################################## |
11 | |
12 | class HelpController < ApplicationController |
13 | |
14 | # Hide the main heading; it is output by the view rather than letting the |
15 | # layout do it so that both heading and body text can be wrapped in a single |
16 | # DIV for CSS styling of the whole text block, if required. |
17 | # |
18 | def skip_main_heading? |
19 | action_name == 'show' |
20 | end |
21 | |
22 | def show |
23 | # The ":id" value ends up being used as the name of a Partial to be |
24 | # rendered by the 'help' view. To stop hackers putting dots, slashes |
25 | # etc. into a URL in an attempt to get the renderer to load a different |
26 | # Partial, only let "a-z" and underscores through. |
27 | |
28 | @partial = params[ :id ].gsub( /[^a-z_]/, '' ) |
29 | end |
30 | end |