ActiveAdmin Rails 4 NoMenuError -
i using rails 4 branch of activeadmin.
i have location model excluded menu via:
activeadmin.register location belongs_to :area menu false end
the area model not excluded menu.
when try create new location in test such by:
post :create, location: { "name" => "sorry"}, area_id: a.id
i getting following exception:
activeadmin::menucollection::nomenuerror: no menu name of :area in availble (sic) menus: default, utility_navigation, season
when add locations menu (i.e. comment out 'menu false')..the problem goes away. did not have problem pre-rails 4.
obviously rather able keep using method exclude menu rather css.
any suggestions?
just remove "menu false", doesn't work belongs_to
Comments
Post a Comment