how to access serialized attributes in my views?

Hi,

I have a serialized attribute in a model:

         serialize :some_array, Array

(I've unit tested this attribute and it works just like an Array
should.)

Now, how do I supply my some_array attribute to my views so that I can
reference elements of my array? The following, for example, won't
work:

        <%= f.text_field :some_array[0] %>

Thanks,

Lille

serialize saves the data as yaml so you will have to transform it back
to
an array. For example I use the to_json method so I can pass the
serialized data
to JavaScript.