Skip to content

Can't add new menu resource (content type) #36

@Allanon29

Description

@Allanon29

I generated a Refinery engine called Events for my event content type.
I tried to add it to menu.rb like

 config.menu_resources = {:refinery_page=>{:klass=>"Refinery::Page", :title_attr=>"title"}, :refinery_resource=>{:klass=>"Refinery::Resource", :title_attr=>"file_name"}, :refinery_events=>{:klass=>"Refinery::Events", :title_attr=>"event_title"}}

When I try to edit the menu I get this error:

undefined method `all' for Refinery::Events:Module

I use the support-2.1 branch of refinerycms-menus.

Any idea why this error happens?

Huge thanks for the gem btw! ActiveAdmin also needs something similar.

Best Wishes,
Matt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions