From: HUNT HUNT Date: 2010-03-30T19:42:31+09:00 Subject: want to convert this php code to ruby................. function tooltip($el,$content,$options=array()) { if ( substr($content,0,1)!='$') $content = "'$content'"; if($options) { return $this->Javascript->codeBlock($this->output(sprintf($this->tooltip['fancy'],$el,$content,$this->_parseOptions($options)))); } else { return $this->Javascript->codeBlock($this->output(sprintf($this->tooltip['base'],$el,$content))); } } -- Posted via http://www.ruby-forum.com/.