diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-09-29 08:43:17 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-09-29 08:43:17 +0000 |
commit | 438db964ad1531d3c378c3e4acc25d0007cbc1cc (patch) | |
tree | 428239d889b10d66471a5c93d5fdf943e20b2032 /actionpack/lib/action_view/helpers/text_helper.rb | |
parent | 67d1e0cd3d366cd74caa24bc622442d04ef20e57 (diff) | |
download | rails-438db964ad1531d3c378c3e4acc25d0007cbc1cc.tar.gz rails-438db964ad1531d3c378c3e4acc25d0007cbc1cc.tar.bz2 rails-438db964ad1531d3c378c3e4acc25d0007cbc1cc.zip |
Testing should also use a default REQUEST_METHOD
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2408 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view/helpers/text_helper.rb')
-rw-r--r-- | actionpack/lib/action_view/helpers/text_helper.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/text_helper.rb b/actionpack/lib/action_view/helpers/text_helper.rb index 732e87078f..16f9450df1 100644 --- a/actionpack/lib/action_view/helpers/text_helper.rb +++ b/actionpack/lib/action_view/helpers/text_helper.rb @@ -8,7 +8,7 @@ module ActionView # <% for post in @posts %> # Title: <%= truncate(post.title, 20) %> # <% end %> - module TextHelper + module TextHelper # The regular puts and print are outlawed in eRuby. It's recommended to use the <%= "hello" %> form instead of print "hello". # If you absolutely must use a method-based output, you can use concat. It's use like this <% concat "hello", binding %>. Notice that # it doesn't have an equal sign in front. Using <%= concat "hello" %> would result in a double hello. @@ -265,6 +265,9 @@ module ActionView end end + class << self + include ActionView::Helpers::TextHelper + end private # The cycle helpers need to store the cycles in a place that is |