A while back I migrated a ruby webapp (using eRuby - note: Not Rails) to my new server and in the process it seems to have got broken. I get the error "/usr/lib/ruby/1.8/tempfile.rb:12: superclass mismatch for class Tempfile (TypeError)"
.
I can't see what changed in the migration - all the code stayed exactly the same. I've tried stripping the code down somewhat but it still doesn't work.
Any ideas what might be wrong or where else to look?
Basically the webapp is using the BBC's Traffic Information RSS feeds and searching them to find traffic reports relevant to certain roads. Because of this it uses 'rss/1.0'
, 'rss/2.0'
and 'open-uri'
.
Cheers,
Robin
UPDATE:
After more investigation I have found that this error does not occur when I'm calling the methods in my classes from a normal ruby script (as opposed to a .rhtml file). Therefore it seems to be a problem with eRuby. Anyone any ideas?