-1

I want to convert ProductTypeId to product_type_id.

parameterize function was not helpful.

Is there any way to do this?

Remy Wang
  • 666
  • 6
  • 26

1 Answers1

0

Try with

ProductTypeId.to_s.underscore