lib/erector/rails2/extensions/rails_helpers.rb
# Set up URL helpers so that both helpers.users_url and users_url can be called.
Set up URL helpers so that both helpers.users_url and users_url can be called.
Set up URL helpers so that both helpers . users_url and users_url can be called .
def link_to(*args, &block)
        if block_given?
          parent.link_to(*args, &block)
        else
          args[0] = CGI.escapeHTML(args[0])
          rails_helper_output = parent.link_to(*args, &block)
          text rails_helper_output
        end
      end
def link_to ( * args , & block ) if block_given? parent . link_to ( * args , & block ) else args [ 0 ] = CGI . escapeHTML ( args [ 0 ] ) rails_helper_output = parent . link_to ( * args , & block ) text rails_helper_output end end
Set up URL helpers so that both helpers.users_url and users_url can be called.
Set up URL helpers so that both helpers . users_url and users_url can be called .
# i wonder why this is text and not rawtext
args
block