Rails association not matching camel case class name
I'm trying to setup an association between my DeviceType class and my VrfEntry class. They were both named with camelCase according to Rails standards. I've setup the belongs_to in the model config for DeviceType. When I go to add a record into the DeviceType it errors out as it is missing the model "Vrfentry" which does not exist. "VrfEntry" exists however. Device Type Model Config: class DeviceType < ApplicationRecord belongs_to :vrfentry end Attempt to create device entry. Fails because it can't find class "Vrfentry" with lowercase e: catalog(dev):004> DeviceType.create!(device_type: "Anest
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.