I want to convert ProductTypeId to product_type_id.
ProductTypeId
product_type_id
parameterize function was not helpful.
parameterize
Is there any way to do this?
Try with
ProductTypeId.to_s.underscore