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

Ticket #4918: url_helper_patch.diff

File url_helper_patch.diff, 0.6 kB (added by ssinghi@kreeti.com, 2 years ago)

Patch file

  • actionpack/lib/action_view/helpers/url_helper.rb

    old new  
    244244 
    245245      # Returns true if the current page uri is generated by the options passed (in url_for format). 
    246246      def current_page?(options) 
    247         CGI.escapeHTML(url_for(options)) == @controller.request.request_uri 
     247        url_for(options) == CGI.escapeHTML(@controller.request.request_uri) 
    248248      end 
    249249 
    250250      private