Small typos for polymorphic association example code.
...
class Employee < ApplicationRecord
# should be comments
has_many :comment, as: :commentable
end
class Product < ApplicationRecord
# should be comments
has_many :comment, as: :commentable
end
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Small typos for polymorphic association example code.