Johan Sørensen wrote :
| /Users/johan/Hobix/lib/hobix/out/quick.rb:124:in `load': Error  
| `undefined method `to_html' for "\"Google\":http:// 
| google.com":String' in erb /path/to/skels/.... (Hobix::Out::QuickError)
| 
| The yaml line looks like this:
| quote_note: "Google":http://google.com
| 
| 
| I've even tried lots of different approaches; RedCloth.new 
| (entry.quote_note) directly in the view; an accessor in the Quote  
| class that converts it to redcloth etc, but I either get the above  
| error or the text non-textilized..

Hi,

This seems strange, as regarding your error it seems that you're trying
to apply the to_html method to a string ....

The easiest (but the crapest ?) would be to add something like:

class String
   def to_html
     RedCloth.new( self ).to_html
   end
end

Best Regards,

-- 
Frederick Ros aka Sleeper -- [EMAIL PROTECTED]

Linux is obsolete
(Andrew Tanenbaum)

Attachment: pgp0NhIXd1hZ7.pgp
Description: PGP signature

_______________________________________________
Hobix-is-the-way mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/hobix-is-the-way

Reply via email to