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.

This entry was posted in To Be Categorized and tagged . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

2 Comments

  1. Posted March 23, 2008 at 9:41 AM | Permalink

    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. Posted March 23, 2008 at 11:05 PM | Permalink

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">