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
Hello, I am trying to figure out how to do a polymorphic associate when creating an item.
For example:
I get the following error:
StrongResources::UnregisteredResource