Mar 22 2008

ActionView::TemplateError (superclass mismatch for class Cookie)

Published by Robert Fischer at 6:56 pm under Uncategorized

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% [?]

2 Responses to “ActionView::TemplateError (superclass mismatch for class Cookie)”

  1. Charles Oliver Nutteron 23 Mar 2008 at 9:41 am

    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.

  2. Robert Fischeron 23 Mar 2008 at 11:05 pm

    http://dev.rubyonrails.org/ticket/11407

    Done. :)

Trackback URI | Comments RSS

Leave a Reply

Green Web Hosting! This site hosted by DreamHost.