Upgraded to Typo r865
Posted by Kyle Heon Wed, 22 Feb 2006 21:08:00 GMT
It had been awhile since I last updated my installed version of Typo so I finally took the plunge and did so tonight. It didn’t quite go as well as I’d hoped but in the end I think I actually learned a few things.
Update: Still working through issues. Noticed that Textile markup is no longer being interpretted. I’m working to get this issue resolved.
Fixed: After many nights of troubleshooting and repeated pleas on the Typo mailing list I have finally fixed the issues with Textile markup not being rendered properly.
I’m not sure on the exact issue but it seems to have been tied to a couple things. One might have been a banged up migration (probably my fault). Somehow the body_html column’s content lost all html formatting.
To fix this I opened up a script/console session and did the following:
articles = Article.find(:all)
articles.each do |a|
a.body_html = nil
a.save
endWhat this did was reset the body_html columns. I then was able to hard refresh the site (running via Webrick in development mode). What this seems to do is force Typo to regenerate the body_html data, this time correctly formatted.
This was the first time I’d played with script/console. Very cool tool, nice to have for debugging and quick (and not so quick) hotfixes.