I am fairly new to rails. I am trying to cycle through an array of
activerecord objects and the view signals an error when I try to display
fields that are not specified.
I had expected the unspecified fields to return empty strings. What’s
the rationale in returning nil?
What’s the best way to deal with this? Currently I am calling the to_s
method for each field, but this doesn’t seem very elegant.