Wes Gamble
2006-Jul-19 21:56 UTC
[Rails] AR: Be careful w/legacy column names with capital letters
All, 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. Wes -- Posted via http://www.ruby-forum.com/.