2014-01-24 85 views

回答

0

只是增加兩個行init.rb

menu :project_menu, :polls1, { :controller => 'polls', :action => 'index' }, :caption => 'Polls1',:last => true, :param => :project_id 
menu :project_menu, :polls2, { :controller => 'polls', :action => 'index' }, :caption => 'Polls2',:last => true, :param => :project_id 

注意到第二個參數(:polls1在1號線和:polls2在第2行)不能相同,否則會引發錯誤

+0

嗨leo108,這個代碼將新插件添加到項目菜單欄,但我想在每個項目函數中添加許多選項卡。 – user3227206

相關問題