On Tue, 2006-07-18 at 21:52 -0500, Steve Longdo wrote: > I have an update for some reason the @article.text_filter is returning > a YAML String instead of a TextFilter object. This is probably the > culprit for Trac #1006 as well. I confirmed this in the console > loading the saved new post(a) and an older one that still renders > correctly(b):
When I encountered symptoms like this, it's because my database schema was hosed. Probably happened when I tried to fix the migrations 6 months ago. My database had an extra table that wasn't being used but had the same name as a variable in the code. AR wasn't very happy about that and instantiated YAML strings instead of objects. In my case, I dropped the table and things started working. So, you might want to give your schema a close look-see. Especially check for extra tables. I've been meaning to write a Typo database lint tool... It would ensure that no extra tables exist, all table references work, no duplicates, etc. Ah, if only I had a bit more time... - Scott _______________________________________________ Typo-list mailing list [email protected] http://rubyforge.org/mailman/listinfo/typo-list
