Ruby on Rails
Monday, May 3, 2010
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
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment