Displaying 1 result from an estimated 1 matches for "o0x8a767qaharygn3q21iw".
2007 Jul 28
2
activerecord model constantize question
I have a variable called column with the value of "bla" (column =
"bla")
I have a model call Location where method bla is defined (amongst many
other methods). What I would like to to is to call the method in
Location defined in the variable column.
I tried:
Location.column.constantize
but that gave me an error NoMethod.
I am sure there is a very simple way in Ruby as