Why does scaffolding's list.rhtml use "foo.send(column.name)

HI all,

I"m using 1.1.6 script/generate scaffolding.

Why does the view/foos/list.rhtml use “foo.send(column.name)” to
display the contents of each column?
I had to change this to “foo[column.name]” to get the display right in
a couple of models. Specifically, one model has a column named
‘display’, is that conflicting with something internally to AR ?

Thanks for your advice!

Apple MacBook. Black. It’s the new White!

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