Wes Gamble wrote:
I have a view component that I would like to generalize.
What are the practical differences (if any) between using
to dynamically get at an object's attributes?
Short answer: The first is much better from a security point of view (image what @object.xyz could contain). If send doesn't have enough functionality, investigate instance_eval: