Displaying 2 results from an estimated 2 matches for "answers_contain".
Did you mean:
answers_container
2006 Mar 15
7
Populating text_tag with serialized data
I am using a serialized attribute in one of my models The serialized data is
in the form of an array. I want to have a text_tag for each element
contained in my serialized attribute. How would I construct the text_tag?
My model name is ''questions''. The serialized attribute is "answers"
So I might have:
<% form tag %>
<% text_tag ''question'',
2007 Feb 18
2
SerializationTypeMismatch in Production Mode
In production mode, I keep getting this error the 2nd time it loads a
page with a serialized attribute:
ActiveRecord::SerializationTypeMismatch (answers_container was
supposed to be a Array, but was a NilClass):
/vendor/rails/activerecord/lib/active_record/base.rb:1964:in
`unserialize_attribute''
In development, it works fine. In fact, if I set to false
config.cache_classes in production.rb, it works fine.
The first time you hit the page, it...