RailsAdmin中的NoMethodErrod :: Main#delete

时间:2014-06-04 07:32:18

标签: ruby-on-rails rails-admin nomethoderror

我有一些问题。我在DB中有2个表(项目,流派,genres_items)。当我尝试从Rails_Admin面板中删除项目时,我收到错误

ActionView::Template::Error (undefined method "items_genres" for #<Item:0x007f0d9571cb50>): 8: - else 9: = wording 10: %ul 11: - @abstract_model.each_associated_children(object) do |association, child| 12: %li 13: - child_config = RailsAdmin.config(child) 14: = @abstract_model.model.human_attribute_name association.name

当我尝试删除Genre时,我得到了

ActionView::Template::Error (undefined method "genres_items" for #<Item:0x007f0d9571cb50>): 8: - else 9: = wording 10: %ul 11: - @abstract_model.each_associated_children(object) do |association, child| 12: %li 13: - child_config = RailsAdmin.config(child) 14: = @abstract_model.model.human_attribute_name association.name

起初我认为这是一个数据库错误(我的数据库在Amazon服务器和Heroku中的应用程序),但是当我为本地数据库设置应用程序时,我遇到同样的问题

0 个答案:

没有答案