You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

example_controller.rb 359 B

13 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
1234567891011121314151617181920
  1. # Sample plugin controller
  2. class ExampleController < ApplicationController
  3. unloadable
  4. layout 'base'
  5. before_filter :find_project, :authorize
  6. menu_item :sample_plugin
  7. def say_hello
  8. @value = Setting.plugin_sample_plugin['sample_setting']
  9. end
  10. def say_goodbye
  11. end
  12. private
  13. def find_project
  14. @project=Project.find(params[:id])
  15. end
  16. end

软件技术创新是当今国家整体创新能力的重要基础和发展引擎。近年来,大众参与的软件创新与创业活动已经成为网络时代软件开发和应用的新形态,正在快速改变着全球软件创新模式和软件产业格局。 ...