To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / .svn / pristine / 79 / 792291627fe731edc6c641f7c6fd4a8dbaf670c1.svn-base @ 1297:0a574315af3e
History | View | Annotate | Download (359 Bytes)
| 1 | 1296:038ba2d95de8 | Chris | # Sample plugin controller |
|---|---|---|---|
| 2 | class ExampleController < ApplicationController |
||
| 3 | unloadable |
||
| 4 | |||
| 5 | layout 'base' |
||
| 6 | before_filter :find_project, :authorize |
||
| 7 | menu_item :sample_plugin |
||
| 8 | |||
| 9 | def say_hello |
||
| 10 | @value = Setting.plugin_sample_plugin['sample_setting'] |
||
| 11 | end |
||
| 12 | |||
| 13 | def say_goodbye |
||
| 14 | end |
||
| 15 | |||
| 16 | private |
||
| 17 | def find_project |
||
| 18 | @project=Project.find(params[:id]) |
||
| 19 | end |
||
| 20 | end |