How does polymorphic_path works in ruby?https://github.com/bodrovis-learning/RailsSeriesYT/blob/26d93bfaa810ff8599facc61d5b9e9df390391ff/app/views/comments/_comment.html.erb#L18
https://apidock.com/rails/ActionDispatch/Routing/PolymorphicRoutes/polymorphic_path
polymorphic_path([comment.commentable, comment])polymorphic_path(record_or_hash_or_array, options = {})
Why params are array here?