Mar 22 2008
ActionView::TemplateError (superclass mismatch for class Cookie)
If you happen to see this error in Rails:
ActionView::TemplateError (superclass mismatch for class Cookie)
It really means:
Don't require CGI, because I already screwed with it, and you're just going to confuse your server. Love, Rails.
That took me a not-trivial amount of time to figure out.
Popularity: 3% [?]








Superclass mismatch means the same-named class was reopened with a different superclass. Can’t do that. It must mean that Rails hasn’t namespaced its Cookie class correctly, or at least has created a Cookie that doesn’t descend the same hierarchy. Bad idea. You should file it.
http://dev.rubyonrails.org/ticket/11407
Done. :)