def link_to(content,href=nil,options={})
      href ||= content
      options.update :href => url_for(href)
      content_tag :a, content, options
    end
def link_to(content,href=nil,options={})
      href ||= content
      options.update :href => url_for(href)
      content_tag :a, content, options
    end
Works like link_to, but href is optional. If no href supplied, content is used as href

   link_to "grub", "/food", :class => "eats"   # <a href="/food" class="eats">grub</a>
   link_to "http://foo.com"                    # <a href="http://foo.com">http://foo.com</a>
   link_to "home"                              # <a href="/home">home</a>