我有3种相关机型: class Brand < ActiveRecord::Base
has_many :car_models
end
class CarModel < ActiveRecord::Base
has_many :production_years
belongs_to :brand
end
class ProductionYear < Act
注意如何费时完成的请求 Started GET "/" for 127.0.0.1 at 2011-10-19 20:45:38 +0800
Processing by MainController#index as HTML
Book Load (0.9ms) SELECT "books".* FROM "books"
Rendered application/_product.html.
我把了同样的问题,我问在这里activeadmin的问题,董事会在GitHub上: https://github.com/gregbell/active_admin/issues/645 嗨, 我有两个不同的问题。 1:我喜欢主动联系处理一个简单的DSL像这样的has_many关系的方式: ActiveAdmin.register Artist do
form do |f|
f
我已经实现了活动管理员,但我想知道如何让“新建,更新,编辑,销毁”的默认控制器动作消失。现在我所做的是从控制器中删除操作,删除了相应的视图。但是,如果我喜欢localhost:3000/pages/new,我会得到如下所示的内容:“未知的操作无法找到PagesController的操作'new'”。我真正喜欢的是重定向到管理登录页面。但我不确定如何去做。我试过这个: match '*path' =