module MirandaHelper class Url def link_to(url,text=url,opts={}) attributes = "" opts.each { |key,value| attributes << key.to_s << "=\"" << value << "\" "} "#{text}" end end end