Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #11204: escape_string_urls_in_link_to_helper.diff

File escape_string_urls_in_link_to_helper.diff, 0.6 kB (added by jtcalhoun, 6 months ago)
  • actionpack/lib/action_view/helpers/url_helper.rb

    old new  
    136136      #        m.setAttribute('value', 'delete'); f.appendChild(m);f.submit(); };return false;">Delete Image</a> 
    137137      def link_to(name, options = {}, html_options = nil) 
    138138        url = case options 
    139           when String 
    140             options 
    141139          when :back 
    142140            @controller.request.env["HTTP_REFERER"] || 'javascript:history.back()' 
    143141          else