Skip to content

collection_path throws missing key exception when using belongs_to #18

@dawilster

Description

@dawilster
ActiveAdmin.register Comment do
   belongs_to :post
   csv_importable columns: [:name]
end

Calls to collection_path within the the dsl.rb will raise an exception.

No route matches {:action=>"index", :controller=>"admin/comments", :post_id=>nil} missing required keys: [:post_id]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions