You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems to have issues with strong parameters. So for example i had to do this to be able to create a menu:
ActiveAdmin.register Menu do
permit_params :name, :area
end
ActiveAdmin::Menus.configure do |c|
# Areas are specific parts of a page layout, you can add many of them
c.add_area :main_navigation do |i|
end
c.add_predefined_item :home do |i|
# Specify how to render the menu item
i.renderer = lambda { link_to 'Home', root_path }
end
c.add_resource_class Page do |i|
# Specify how to render the menu item
i.renderer = lambda { |page| link_to page.title, page }
end
end
but then I can't create a resource menu item with error:
ActiveModel::ForbiddenAttributesError
The text was updated successfully, but these errors were encountered:
also, when i get to the add New Resource Item page, I can select resource type, but the resource select box is empty? Should it be populated by the pages?
Seems to have issues with strong parameters. So for example i had to do this to be able to create a menu:
but then I can't create a resource menu item with error:
The text was updated successfully, but these errors were encountered: