[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 Fri Oct 22 10:34:04 +0200 2010:

> According to the wiki, there should be a "variable" content_type.  
> 
>        log content_type filename
> 
>     hook[mime-view]: Error: undefined method `content_type' for #<Redwood::HookManager::HookContext:0x7f13003fe110>

Looks like a syntax error to me (in Ruby you don't have to add
parentheses around the parameters, but as in your case above things can
get ambiguous then). Also log doesn't support more than one parameter.

Try:

       log content_type
       log filename

Or:

       log "content_type=#{content_type} filename=#{filename}"

Sascha

--
http://sascha.silbe.org/
http://www.infra-silbe.de/

Attachment: signature.asc
Description: PGP signature

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