Skip to content

Polymorphic Writes Error #13

@austinh

Description

@austinh

Hello, I am trying to figure out how to do a polymorphic associate when creating an item.

For example:

strong_resource :reservation do
    attribute :start, :datetime
    attribute :finish, :datetime
    belongs_to :reservable
  end
polymorphic_belongs_to :reservable,
                             group_by: :reservable_type,
                             groups: {
                               # Polymorphic types here
                             }

I get the following error: StrongResources::UnregisteredResource

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