Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] mime-view.rb: content_type not found
@ 2010-10-22  8:34 Shadowfirebird
  2010-10-22 10:31 ` Philipp Überbacher
  2010-10-23 12:00 ` Sascha Silbe
  0 siblings, 2 replies; 6+ messages in thread
From: Shadowfirebird @ 2010-10-22  8:34 UTC (permalink / raw)
  To: sup-talk


[-- Attachment #1.1: Type: text/plain, Size: 453 bytes --]

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?

-- 
Bones: "The man's DEAD, Jim!"

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 140 bytes --]

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-10-23 23:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-22  8:34 [sup-talk] mime-view.rb: content_type not found Shadowfirebird
2010-10-22 10:31 ` Philipp Überbacher
2010-10-23  9:28   ` Shadowfirebird
2010-10-23 21:46     ` Matthew Goodall
2010-10-23 12:00 ` Sascha Silbe
2010-10-23 21:42   ` Shadowfirebird

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox