AR: Be careful w/legacy column names with capital letters


I’ve found an issue that is somewhat strange.

Assume: An AR object backed by a legacy schema which includes column
names that start with a capital letter.

Summary: In a partial view, you cannot access an overridden getter
method for a column on your model object if that method name is equal to
the column name and the column name starts with a capital letter.

Observations: I’ve only seen this in partials. Regular view templates
don’t appear to have this behavior.


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs