我用redmine创建了一个新插件,我在启动菜单中看到了它,但它给了我这个错误。请提出想法
init.rb
Redmine::Plugin.register :extraction do
permission :extractions, {:extractions => [:index]}, :public => true
menu :top_menu , :extractions, { :controller => 'extractions', :action =>
'index' }, :caption => 'Extraction'
end
我的控制器
class ExtractionsController < ApplicationController
unloadable
def index
@extrac = Extraction.all
end
end
视图
<h2>ExtractionsController#index</h2>