Sha256: 0d53b60dbe8264f88b20cfd0a23b911e05ba5446caa689ab3241ef3c87ab67be

Contents?: true

Size: 524 Bytes

Versions: 38

Compression:

Stored size: 524 Bytes

Contents

module ActionView #:nodoc:
  # = Action View Raw Output Helper
  module Helpers #:nodoc:
    module RawOutputHelper
      # This method outputs without escaping a string. Since escaping tags is
      # now default, this can be used when you don't want Rails to automatically
      # escape tags. This is not recommended if the data is coming from the user's
      # input.
      #
      # For example:
      #
      # <%=raw @user.name %>
      def raw(stringish)
        stringish.to_s.html_safe
      end
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
actionpack-3.0.20 lib/action_view/helpers/raw_output_helper.rb
actionpack-3.0.19 lib/action_view/helpers/raw_output_helper.rb
actionpack-3.0.18 lib/action_view/helpers/raw_output_helper.rb
actionpack-3.0.17 lib/action_view/helpers/raw_output_helper.rb
actionpack-3.0.16 lib/action_view/helpers/raw_output_helper.rb
actionpack-3.0.15 lib/action_view/helpers/raw_output_helper.rb
actionpack-3.0.14 lib/action_view/helpers/raw_output_helper.rb
actionpack-3.0.13 lib/action_view/helpers/raw_output_helper.rb
actionpack-3.0.13.rc1 lib/action_view/helpers/raw_output_helper.rb
actionpack-3.0.12 lib/action_view/helpers/raw_output_helper.rb
actionpack-3.0.12.rc1 lib/action_view/helpers/raw_output_helper.rb
actionpack-3.0.11 lib/action_view/helpers/raw_output_helper.rb
actionpack-3.0.10 lib/action_view/helpers/raw_output_helper.rb
actionpack-3.0.10.rc1 lib/action_view/helpers/raw_output_helper.rb
actionpack-3.0.9 lib/action_view/helpers/raw_output_helper.rb
actionpack-3.0.9.rc5 lib/action_view/helpers/raw_output_helper.rb
actionpack-3.0.9.rc4 lib/action_view/helpers/raw_output_helper.rb
actionpack-3.0.9.rc3 lib/action_view/helpers/raw_output_helper.rb
actionpack-3.0.9.rc1 lib/action_view/helpers/raw_output_helper.rb
actionpack-3.0.8 lib/action_view/helpers/raw_output_helper.rb