Many of the view helpers require an object with accessor methods as
There are times however, when I want to store a collection of
variables in a hash,
and yet be able to use these helpers.
Look at this example:
<%= text_area "person", "description" %>
This works great for the case where I have a "person" object, with a
But what if I need to store the data in a hash, like this:
I don't want to write a wrapper function to get all the hash values.
I would like to
use a gem or other builtin mechanism to be able to refer to
Is there a way to store variables in a collection (like a hash), and
use the keys of the
hash as accessor names in view helpers? Has anyone written one