[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sup-talk] mime-view.rb: content_type not found



Excerpts from Shadowfirebird's message of 2010-10-22 10:34:04 +0200:
> Hi, I'm having trouble setting up the mime-view.rb hook.
> 
> According to the wiki, there should be a "variable" content_type.  
> 
> But, here's my program:
> 
>     begin
>        log content_type filename
> 
>     rescue
>        log "Error: #{$!}"
>     end
> 
> And here's what the log file says:
> 
>     hook[mime-view]: Error: undefined method `content_type' for #<Redwood::HookManager::HookContext:0x7f13003fe110>
> 
> 
> Anyone got any ideas?

I might be wrong, but I seem to remember that the mime type checking
depends on some funky debian/ubuntu script. I ran into this when I tried
to get this to work:
http://sup.rubyforge.org/wiki/wiki.pl?ViewingAttachments

Regards,
Philipp

_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk