How to convert a string to a constant in Ruby? February 25, 2023 by Tarik Object.const_get("User") No need to require ActiveSupport.