Mercurial > hg > soundsoftware-site
annotate .svn/pristine/d2/d24962e05eefa8c4a95f4bd86c0954dda018dde6.svn-base @ 1458:b1f4c9a2af24 bug_794
Makes the default radio button checked by default -- this should fix bug #794.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Mon, 11 Nov 2013 18:25:22 +0000 |
parents | cbb26bc654de |
children |
rev | line source |
---|---|
Chris@909 | 1 # Sample plugin controller |
Chris@909 | 2 class ExampleController < ApplicationController |
Chris@909 | 3 unloadable |
Chris@909 | 4 |
Chris@909 | 5 layout 'base' |
Chris@909 | 6 before_filter :find_project, :authorize |
Chris@909 | 7 menu_item :sample_plugin |
Chris@909 | 8 |
Chris@909 | 9 def say_hello |
Chris@909 | 10 @value = Setting.plugin_sample_plugin['sample_setting'] |
Chris@909 | 11 end |
Chris@909 | 12 |
Chris@909 | 13 def say_goodbye |
Chris@909 | 14 end |
Chris@909 | 15 |
Chris@909 | 16 private |
Chris@909 | 17 def find_project |
Chris@909 | 18 @project=Project.find(params[:id]) |
Chris@909 | 19 end |
Chris@909 | 20 end |