没有路由匹配{:action =>“ index”,:controller =>“ extractions”}插件

时间:2018-07-20 14:06:23

标签: ruby-on-rails plugins redmine

我用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>

error

0 个答案:

没有答案